Skip to content

Commit 6d89c2e

Browse files
Add $ to Pluginlib.rst (#5285)
Signed-off-by: Nils-Christian Iseke <nilsmailiseke@gmail.com>
1 parent 2b91744 commit 6d89c2e

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

source/Tutorials/Beginner-Client-Libraries/Pluginlib.rst

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Create a new empty package in your ``ros2_ws/src`` folder with the following com
4343

4444
.. code-block:: console
4545
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
4747
4848
4949
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
101101

102102
.. code-block:: console
103103
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
105105
106106
2.1 Source code for the plugins
107107
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -286,32 +286,27 @@ From ``ros2_ws``, be sure to source the setup files:
286286

287287
.. code-block:: console
288288
289-
source install/setup.bash
289+
$ source install/setup.bash
290290
291291
.. group-tab:: macOS
292292

293293
.. code-block:: console
294294
295-
. install/setup.bash
295+
$ . install/setup.bash
296296
297297
.. group-tab:: Windows
298298

299299
.. code-block:: console
300300
301-
call install/setup.bat
301+
$ call install/setup.bat
302302
303303
Now run the node:
304304

305305
.. code-block:: console
306306
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
315310
316311
Summary
317312
-------

0 commit comments

Comments
 (0)