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/Concepts/ROS-2-Client-Libraries.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ Furthermore, having the common core means that maintaining multiple client libra
60
60
Language-specific functionality
61
61
-------------------------------
62
62
63
-
Client library concepts that require language-specific features/properties are not implemented in the RCL but instead are implemented in each client library.
63
+
Client library concepts that require language-specific features/properties are not implemented in the RCL but instead are implemented in each client library.
64
64
For example, threading models used by “spin” functions will have implementations that are specific to the language of the client library.
Copy file name to clipboardExpand all lines: source/Contributing/Developer-Guide.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ For example, everyone should have a PEP8 checker built into their editor to cut
151
151
152
152
Also where possible, packages should check style as part of their unit tests to help with the automated detection of style issues (see `ament_lint_auto <https://github.com/ament/ament_lint/blob/master/ament_lint_auto/doc/index.rst>`__).
Copy file name to clipboardExpand all lines: source/Contributing/Migration-Guide.rst
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Before being able to migrate a ROS 1 package to ROS 2 all of its dependencies mu
14
14
Migration steps
15
15
---------------
16
16
17
-
.. contents::
17
+
.. contents::
18
18
:depth: 1
19
19
:local:
20
20
@@ -76,7 +76,7 @@ Pure Python package
76
76
If the ROS 1 package uses CMake only to invoke the ``setup.py`` file and does not contain anything beside Python code (e.g. also no messages, services, etc.) it should be converted into a pure Python package in ROS 2:
77
77
78
78
79
-
*
79
+
*
80
80
Update or add the build type in the ``package.xml`` file:
81
81
82
82
.. code-block:: xml
@@ -85,10 +85,10 @@ If the ROS 1 package uses CMake only to invoke the ``setup.py`` file and does no
85
85
<build_type>ament_python</build_type>
86
86
</export>
87
87
88
-
*
88
+
*
89
89
Remove the ``CMakeLists.txt`` file
90
90
91
-
*
91
+
*
92
92
Update the ``setup.py`` file to be a standard Python setup script
93
93
94
94
ROS 2 supports Python 3 only.
@@ -100,7 +100,7 @@ Update the *CMakeLists.txt* to use *ament_cmake*
100
100
Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
101
101
102
102
103
-
*
103
+
*
104
104
Set the build type in the ``package.xml`` file export section:
105
105
106
106
.. code-block:: xml
@@ -109,7 +109,7 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
109
109
<build_type>ament_cmake</build_type>
110
110
</export>
111
111
112
-
*
112
+
*
113
113
Replace the ``find_package`` invocation with ``catkin`` and the ``COMPONENTS`` with:
114
114
115
115
.. code-block:: cmake
@@ -119,14 +119,14 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
119
119
# ...
120
120
find_package(componentN REQUIRED)
121
121
122
-
*
122
+
*
123
123
Move and update the ``catkin_package`` invocation with:
124
124
125
125
126
-
*
126
+
*
127
127
Invoke ``ament_package`` instead but **after** all targets have been registered.
128
128
129
-
*
129
+
*
130
130
The only valid argument for `ament_package <https://github.com/ament/ament_cmake/blob/master/ament_cmake_core/cmake/core/ament_package.cmake>`__ is ``CONFIG_EXTRAS``.
131
131
All other arguments are covered by separate functions which all need to be invoked *before* ``ament_package``:
132
132
@@ -137,21 +137,21 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
137
137
*
138
138
**TODO document ament_export_interfaces?**
139
139
140
-
*
140
+
*
141
141
Replace the invocation of ``add_message_files``, ``add_service_files`` and ``generate_messages`` with `rosidl_generate_interfaces <https://github.com/ros2/rosidl/blob/master/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake>`__.
142
142
143
143
144
-
*
144
+
*
145
145
The first argument is the ``target_name``.
146
146
If you're building just one library it's ``${PROJECT_NAME}``
147
147
148
-
*
148
+
*
149
149
Followed by the list of message filenames, relative to the package root.
150
150
151
151
152
152
* If you will be using the list of filenames multiple times, it is recommended to compose a list of message files and pass the list to the function for clarity.
153
153
154
-
*
154
+
*
155
155
The final multi-value-keyword argument fpr ``generate_messages`` is ``DEPENDENCIES`` which requires the list of dependent message packages.
156
156
157
157
.. code-block:: cmake
@@ -161,17 +161,17 @@ Apply the following changes to use ``ament_cmake`` instead of ``catkin``:
161
161
DEPENDENCIES std_msgs
162
162
)
163
163
164
-
*
164
+
*
165
165
Remove any occurrences of the *devel space*.
166
166
Related CMake variables like ``CATKIN_DEVEL_PREFIX`` do not exist anymore.
167
167
168
168
169
169
* The ``CATKIN_DEPENDS`` and ``DEPENDS`` arguments are passed to the new function `ament_export_dependencies <https://github.com/ament/ament_cmake/blob/master/ament_cmake_export_dependencies/cmake/ament_export_dependencies.cmake>`__.
170
170
171
-
*
171
+
*
172
172
Replace the invocation of ``add_message_files``, ``add_service_files`` and ``generate_messages`` with `rosidl_generate_interfaces <https://github.com/ros2/rosidl/blob/master/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake>`__.
173
173
174
-
*
174
+
*
175
175
Remove any occurrences of the *devel space*.
176
176
Related CMake variables like ``CATKIN_DEVEL_PREFIX`` do not exist anymore.
177
177
@@ -584,7 +584,7 @@ Inside the publishing loop, we use the ``->`` operator to access the ``data`` fi
584
584
// msg.data = ss.str();
585
585
msg->data = ss.str();
586
586
587
-
To print a console message, instead of using ``ROS_INFO()``, we use ``RCLCPP_INFO()`` and its various cousins. The key difference is that ``RCLCPP_INFO()`` takes a Logger object as the first argument.
587
+
To print a console message, instead of using ``ROS_INFO()``, we use ``RCLCPP_INFO()`` and its various cousins. The key difference is that ``RCLCPP_INFO()`` takes a Logger object as the first argument.
0 commit comments