File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed
source/Tutorials/Beginner-Client-Libraries Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Create a new empty package in your ``ros2_ws/src`` folder with the following com
43
43
44
44
.. code-block :: console
45
45
46
- ros2 pkg create --build-type ament_cmake --license Apache-2.0 --dependencies pluginlib --node-name area_node polygon_base
46
+ $ ros2 pkg create --build-type ament_cmake --license Apache-2.0 --dependencies pluginlib --node-name area_node polygon_base
47
47
48
48
49
49
Open your favorite editor, edit ``ros2_ws/src/polygon_base/include/polygon_base/regular_polygon.hpp ``, and paste the following inside of it:
@@ -101,7 +101,7 @@ Create a second empty package in your ``ros2_ws/src`` folder with the following
101
101
102
102
.. code-block :: console
103
103
104
- ros2 pkg create --build-type ament_cmake --license Apache-2.0 --dependencies polygon_base pluginlib --library-name polygon_plugins polygon_plugins
104
+ $ ros2 pkg create --build-type ament_cmake --license Apache-2.0 --dependencies polygon_base pluginlib --library-name polygon_plugins polygon_plugins
105
105
106
106
2.1 Source code for the plugins
107
107
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -286,32 +286,27 @@ From ``ros2_ws``, be sure to source the setup files:
286
286
287
287
.. code-block :: console
288
288
289
- source install/setup.bash
289
+ $ source install/setup.bash
290
290
291
291
.. group-tab :: macOS
292
292
293
293
.. code-block :: console
294
294
295
- . install/setup.bash
295
+ $ . install/setup.bash
296
296
297
297
.. group-tab :: Windows
298
298
299
299
.. code-block :: console
300
300
301
- call install/setup.bat
301
+ $ call install/setup.bat
302
302
303
303
Now run the node:
304
304
305
305
.. code-block :: console
306
306
307
- ros2 run polygon_base area_node
308
-
309
- It should print:
310
-
311
- .. code-block :: console
312
-
313
- Triangle area: 43.30
314
- Square area: 100.00
307
+ $ ros2 run polygon_base area_node
308
+ Triangle area: 43.30
309
+ Square area: 100.00
315
310
316
311
Summary
317
312
-------
You can’t perform that action at this time.
0 commit comments