|
16 | 16 | | int64_t | **[rmw_uros_epoch_millis](#function-rmw_uros_epoch_millis)**()<br>Returns the epoch time in milliseconds taking into account the offset computed during the time synchronization. | |
17 | 17 | | int64_t | **[rmw_uros_epoch_nanos](#function-rmw_uros_epoch_nanos)**()<br>Returns the epoch time in nanoseconds taking into account the offset computed during the time synchronization. | |
18 | 18 | | rmw_ret_t | **[rmw_uros_sync_session](#function-rmw_uros_sync_session)**(const int timeout_ms)<br>Synchronizes the session time using the NTP protocol. | |
| 19 | +| rmw_ret_t | **[rmw_uros_set_publisher_session_timeout](#function-rmw_uros_set_publisher_session_timeout)**(rmw_publisher_t * publisher, int session_timeout)<br>Sets the DDS-XRCE session spin time in reliable publication. | |
| 20 | +| rmw_ret_t | **[rmw_uros_set_service_session_timeout](#function-rmw_uros_set_service_session_timeout)**(rmw_service_t * service, int session_timeout)<br>Sets the DDS-XRCE session spin time in reliable service server. | |
| 21 | +| rmw_ret_t | **[rmw_uros_set_client_session_timeout](#function-rmw_uros_set_client_session_timeout)**(rmw_client_t * client, int session_timeout)<br>Sets the DDS-XRCE session spin time in reliable service client. | |
19 | 22 |
|
20 | 23 |
|
21 | 24 | ## Functions Documentation |
@@ -276,6 +279,75 @@ Synchronizes the session time using the NTP protocol. |
276 | 279 | * RMW_RET_ERROR If no session is running or the synchronization fails. |
277 | 280 |
|
278 | 281 |
|
| 282 | +### function rmw_uros_set_publisher_session_timeout |
| 283 | + |
| 284 | +```cpp |
| 285 | +rmw_ret_t rmw_uros_set_publisher_session_timeout( |
| 286 | + rmw_publisher_t * publisher, |
| 287 | + int session_timeout |
| 288 | +) |
| 289 | +``` |
| 290 | + |
| 291 | +Sets the DDS-XRCE session spin time in reliable publication. |
| 292 | + |
| 293 | +**Parameters**: |
| 294 | + |
| 295 | + * **publisher** publisher where the spin time is configured |
| 296 | + * **session_timeout** time in milliseconds |
| 297 | + |
| 298 | + |
| 299 | +**Return**: |
| 300 | + |
| 301 | + * RMW_RET_OK when success. |
| 302 | + * RMW_RET_INVALID_ARGUMENT If publisher is not valid or unexpected arguments. |
| 303 | + |
| 304 | + |
| 305 | +### function rmw_uros_set_service_session_timeout |
| 306 | + |
| 307 | +```cpp |
| 308 | +rmw_ret_t rmw_uros_set_service_session_timeout( |
| 309 | + rmw_service_t * service, |
| 310 | + int session_timeout |
| 311 | +) |
| 312 | +``` |
| 313 | + |
| 314 | +Sets the DDS-XRCE session spin time in reliable service server. |
| 315 | + |
| 316 | +**Parameters**: |
| 317 | + |
| 318 | + * **service** service where the spin time is configured |
| 319 | + * **session_timeout** time in milliseconds |
| 320 | + |
| 321 | + |
| 322 | +**Return**: |
| 323 | + |
| 324 | + * RMW_RET_OK when success. |
| 325 | + * RMW_RET_INVALID_ARGUMENT If service is not valid or unexpected arguments. |
| 326 | + |
| 327 | + |
| 328 | +### function rmw_uros_set_client_session_timeout |
| 329 | + |
| 330 | +```cpp |
| 331 | +rmw_ret_t rmw_uros_set_client_session_timeout( |
| 332 | + rmw_client_t * client, |
| 333 | + int session_timeout |
| 334 | +) |
| 335 | +``` |
| 336 | + |
| 337 | +Sets the DDS-XRCE session spin time in reliable service client. |
| 338 | + |
| 339 | +**Parameters**: |
| 340 | + |
| 341 | + * **client** client where the spin time is configured |
| 342 | + * **session_timeout** time in milliseconds |
| 343 | + |
| 344 | + |
| 345 | +**Return**: |
| 346 | + |
| 347 | + * RMW_RET_OK when success. |
| 348 | + * RMW_RET_INVALID_ARGUMENT If client is not valid or unexpected arguments. |
| 349 | + |
| 350 | + |
279 | 351 |
|
280 | 352 |
|
281 | 353 |
|
|
0 commit comments