Skip to content

Commit fbbeb0b

Browse files
micro-ROS RMW API reference auto-update 29-07-2021 06:27 (#331)
Co-authored-by: pablogs9 <pablogs9@users.noreply.github.com>
1 parent 6b80712 commit fbbeb0b

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

_includes/rmw_doc/Modules/group__rmw.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
| 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. |
1717
| 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. |
1818
| 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. |
1922

2023

2124
## Functions Documentation
@@ -276,6 +279,75 @@ Synchronizes the session time using the NTP protocol.
276279
* RMW_RET_ERROR If no session is running or the synchronization fails.
277280

278281

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+
279351

280352

281353

0 commit comments

Comments
 (0)