You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Humble release notes] Add entries for rclpy managed nodes and Publisher::wait_for_all_acked (ros2#2491)
* Add entries about rclpy managed nodes and Publisher::wait_for_all_acked in Humble release notes
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
Co-authored-by: Chris Lalancette <[email protected]>
Copy file name to clipboardExpand all lines: source/Releases/Release-Humble-Hawksbill.rst
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,6 +417,23 @@ And an example of how the type adapter can be used:
417
417
To learn more, see the `publisher <https://github.com/ros2/examples/blob/b83b18598b198b4a5ba44f9266c1bb39a393fa17/rclcpp/topics/minimal_publisher/member_function_with_type_adapter.cpp>`_ and `subscription <https://github.com/ros2/examples/blob/b83b18598b198b4a5ba44f9266c1bb39a393fa17/rclcpp/topics/minimal_subscriber/member_function_with_type_adapter.cpp>`_ examples, as well as a more complex `demo <https://github.com/ros2/demos/pull/482>`_.
418
418
For more details, see `REP 2007 <https://ros.org/reps/rep-2007.html>`_.
419
419
420
+
``wait_for_all_acked`` method added to ``Publisher``
This new method will block until all messages in the publisher queue are acked by the matching subscriptions or the specified timeout expires.
424
+
It is only useful for reliable publishers, as in the case of best effort QoS there's no acking.
425
+
Examples:
426
+
427
+
.. code-block:: cpp
428
+
429
+
auto pub = node->create_publisher<std_msgs::msg::String>(...);
430
+
...
431
+
pub->publish(my_msg);
432
+
...
433
+
pub->wait_for_all_acked(); // or pub->wait_for_all_acked(timeout)
434
+
435
+
For a more complete example, see `here <https://github.com/ros2/examples/blob/humble/rclcpp/topics/minimal_publisher/member_function_with_wait_for_all_acked.cpp>`__.
436
+
420
437
``get_callback_groups`` method removed from ``NodeBase`` and ``Node`` classes
0 commit comments