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
Copy file name to clipboardExpand all lines: source/Tutorials/Advanced/Creating-An-RMW-Implementation.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,11 +178,11 @@ Type support
178
178
179
179
To bridge the gap between ROS 2 :doc:`interfaces <../../Concepts/Basic/About-Interfaces>` (specifically :doc:`custom interfaces <../Beginner-Client-Libraries/Custom-ROS2-Interfaces>`) and the underlying middleware, some glue code is needed.
180
180
This is referred to as :ref:`type support <Type Specific Interfaces>`.
181
-
When publishing a message of type ``std_msgs/msg/String``, ``rmw_publish()`` only gets a ``void *`` to the message, which could point to a C++ instance, or a C instance, and so on.
181
+
When publishing a message of type {interface(std_msgs/msg/String)}, ``rmw_publish()`` only gets a ``void *`` to the message, which could point to a C++ instance, or a C instance, and so on.
182
182
The pointer will be interpreted based on the type support information provided when the publisher was created.
183
183
184
184
First, code is generated for each combination of interface type and user-facing language, independent of the underlying middleware.
185
-
For example, for the ``std_msgs/msg/String`` message type, data structures are generated:
185
+
For example, for the {interface(std_msgs/msg/String)} message type, data structures are generated:
186
186
187
187
#. C++: ``std_msgs/msg/string.hpp`` header with ``std_msgs::msg::String`` class generated by the ``rosidl_generator_cpp`` package
188
188
#. C: ``std_msgs/msg/string.h`` header with ``std_msgs__msg__String`` struct generated by the ``rosidl_generator_c`` package
@@ -467,7 +467,7 @@ Footnotes
467
467
See `ros2/rmw_cyclonedds#377 <https://github.com/ros2/rmw_cyclonedds/issues/377>`_.
468
468
469
469
.. [#fn_ts_fastrtps]
470
-
For example, the C++ message Fast CDR serialization/deserialization code generated for ``std_msgs/msg/Header`` is at ``std_msgs/rosidl_typesupport_fastrtps_cpp/std_msgs/msg/detail/dds_fastrtps/header__type_support.cpp`` under the ``build/`` directory.
470
+
For example, the C++ message Fast CDR serialization/deserialization code generated for {interface(std_msgs/msg/Header)} is at ``std_msgs/rosidl_typesupport_fastrtps_cpp/std_msgs/msg/detail/dds_fastrtps/header__type_support.cpp`` under the ``build/`` directory.
471
471
472
472
.. [#fn_ts_dynamic]
473
-
For example, the C++ message introspection code generated for ``std_msgs/msg/Header`` is at ``std_msgs/rosidl_typesupport_introspection_cpp/std_msgs/msg/detail/header__type_support.cpp`` under the ``build/`` directory.
473
+
For example, the C++ message introspection code generated for {interface(std_msgs/msg/Header)} is at ``std_msgs/rosidl_typesupport_introspection_cpp/std_msgs/msg/detail/header__type_support.cpp`` under the ``build/`` directory.
0 commit comments