Skip to content

Commit 29c194e

Browse files
[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]>
1 parent 26c33e0 commit 29c194e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

source/Releases/Release-Humble-Hawksbill.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,23 @@ And an example of how the type adapter can be used:
417417
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>`_.
418418
For more details, see `REP 2007 <https://ros.org/reps/rep-2007.html>`_.
419419

420+
``wait_for_all_acked`` method added to ``Publisher``
421+
""""""""""""""""""""""""""""""""""""""""""""""""""""
422+
423+
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+
420437
``get_callback_groups`` method removed from ``NodeBase`` and ``Node`` classes
421438
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
422439

@@ -441,6 +458,20 @@ Thus, this is a breaking change for downstream uses of ``NodeBaseInterface`` and
441458

442459
See `ros2/rclcpp#1612 <https://github.com/ros2/rclcpp/pull/1612>`__ for more details.
443460

461+
rclpy
462+
^^^^^
463+
464+
Managed nodes
465+
"""""""""""""
466+
467+
Lifecycle nodes support was added to rclpy.
468+
A complete demo can be found `here <https://github.com/ros2/demos/tree/humble/lifecycle_py>`__.
469+
470+
``wait_for_all_acked`` method added to ``Publisher``
471+
""""""""""""""""""""""""""""""""""""""""""""""""""""
472+
473+
Similar to the feature added to rclcpp.
474+
444475
ros2cli
445476
^^^^^^^
446477

0 commit comments

Comments
 (0)