Skip to content

Commit fe025df

Browse files
sloretzclalancette
andauthored
Add Note about rosidl_target_interfaces deprecation in Humble (ros2#1798)
* Add rosidl_target_interfaces deprecation * Apply suggestions from code review Signed-off-by: Shane Loretz <[email protected]> Co-authored-by: Chris Lalancette <[email protected]> * Add link to ros2/demos#529 for an example Signed-off-by: Shane Loretz <[email protected]> Co-authored-by: Chris Lalancette <[email protected]>
1 parent dd9d516 commit fe025df

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

source/Releases/Release-Humble-Hawksbill.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,10 @@ This is particularly unexpected when using a reliable qos profile.
169169

170170
The number of matching subscriptions to wait before starting publishing can be configured with the ``-w/--wait-matching-subscriptions`` flags, e.g.:
171171

172-
```
173-
ros2 topic pub -1 -w 3 /chatter std_msgs/msg/String "{data: 'foo'}"
174-
```
172+
.. code-block:: console
173+
174+
ros2 topic pub -1 -w 3 /chatter std_msgs/msg/String "{data: 'foo'}"
175+
175176
176177
to wait for three matching subscriptions before starting to publish.
177178

@@ -209,6 +210,18 @@ This means that static transforms are unconditionally published to the ``/tf_sta
209210
This was the default behavior, and the behavior which the ``tf2_ros::TransformListener`` class expected before, so most code will not have to be changed.
210211
Any code that was relying on ``robot_state_publisher`` to periodically publish static transforms to ``/tf`` will have to be updated to subscribe to ``/tf_static`` as a ``transient_local`` subscription instead.
211212

213+
214+
rosidl_cmake
215+
^^^^^^^^^^^^
216+
217+
Deprecation of ``rosidl_target_interfaces()``
218+
"""""""""""""""""""""""""""""""""""""""""""""
219+
220+
The CMake function ``rosidl_target_interfaces()`` has been deprecated, and now issues a CMake warning when called.
221+
Users wanting to use messages/services/actions in the same ROS package that generated them should instead call ``rosidl_get_typesupport_target()`` and then ``target_link_libraries()`` to make their targets depend on the returned typesupport target.
222+
See https://github.com/ros2/rosidl/pull/606 for more details, and https://github.com/ros2/demos/pull/529 for an example of using the new function.
223+
224+
212225
Known Issues
213226
------------
214227

0 commit comments

Comments
 (0)