Skip to content

Commit be743aa

Browse files
for_each_callback_group release note (ros2#1779)
* Update Release-Humble-Hawksbill.rst * Whitespace Signed-off-by: Aditya Pande <[email protected]> * Added PR link Signed-off-by: Aditya Pande <[email protected]> * PR link edit Signed-off-by: Aditya Pande <[email protected]>
1 parent e401c86 commit be743aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/Releases/Release-Humble-Hawksbill.rst

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

152+
``get_callback_groups`` method removed from ``NodeBase`` and ``Node`` classes
153+
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
154+
155+
``for_each_callback_group()`` method has replaced ``get_callback_groups()`` by providing a thread-safe way to access ``callback_groups_`` vector.
156+
``for_each_callback_group()`` accepts a function as an argument, iterates over the stored callback groups, and calls the passed function to ones that are valid.
157+
158+
For more details, please refer to this `pull request <https://github.com/ros2/rclcpp/pull/1723>`_.
159+
152160
ros2cli
153161
^^^^^^^
154162

0 commit comments

Comments
 (0)