Skip to content

Commit 682e73b

Browse files
Nils-ChristianIsekechristophebedard
authored andcommitted
Add $ to Intermediate and Miscellaneous (#5351)
Signed-off-by: Nils-Christian Iseke <[email protected]> Signed-off-by: Nils-Christian Iseke <[email protected]> Signed-off-by: Christophe Bedard <[email protected]> Co-authored-by: Christophe Bedard <[email protected]> (cherry picked from commit dda0a68)
1 parent 068ea1b commit 682e73b

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

source/Tutorials/Intermediate/Tf2/Adding-A-Frame-Cpp.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ One way is to pass the ``target_frame`` argument to the launch file directly fro
290290

291291
.. code-block:: console
292292
293-
ros2 launch learning_tf2_cpp turtle_tf2_fixed_frame_demo_launch.py target_frame:=carrot1
293+
$ ros2 launch learning_tf2_cpp turtle_tf2_fixed_frame_demo_launch.py target_frame:=carrot1
294294
295295
The second way is to update the launch file.
296296
To do so, open the ``turtle_tf2_fixed_frame_demo_launch.py`` file, and add the ``'target_frame': 'carrot1'`` parameter via ``launch_arguments`` argument.
@@ -322,27 +322,27 @@ Inside the ``src`` directory download the dynamic frame broadcaster code by ente
322322

323323
.. code-block:: console
324324
325-
wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
325+
$ wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
326326
327327
.. group-tab:: macOS
328328

329329
.. code-block:: console
330330
331-
wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
331+
$ wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
332332
333333
.. group-tab:: Windows
334334

335335
In a Windows command line prompt:
336336

337337
.. code-block:: console
338338
339-
curl -sk https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp -o dynamic_frame_tf2_broadcaster.cpp
339+
$ curl -sk https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp -o dynamic_frame_tf2_broadcaster.cpp
340340
341341
Or in powershell:
342342

343343
.. code-block:: console
344344
345-
curl https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp -o dynamic_frame_tf2_broadcaster.cpp
345+
$ curl https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp -o dynamic_frame_tf2_broadcaster.cpp
346346
347347
Now open the file called ``dynamic_frame_tf2_broadcaster.cpp``:
348348

@@ -459,7 +459,7 @@ Run ``rosdep`` in the root of your workspace to check for missing dependencies.
459459

460460
.. code-block:: console
461461
462-
rosdep install -i --from-path src --rosdistro {DISTRO} -y
462+
$ rosdep install -i --from-path src --rosdistro {DISTRO} -y
463463
464464
.. group-tab:: macOS
465465

@@ -477,19 +477,19 @@ Still in the root of your workspace, build your package:
477477

478478
.. code-block:: console
479479
480-
colcon build --packages-select learning_tf2_cpp
480+
$ colcon build --packages-select learning_tf2_cpp
481481
482482
.. group-tab:: macOS
483483

484484
.. code-block:: console
485485
486-
colcon build --packages-select learning_tf2_cpp
486+
$ colcon build --packages-select learning_tf2_cpp
487487
488488
.. group-tab:: Windows
489489

490490
.. code-block:: console
491491
492-
colcon build --merge-install --packages-select learning_tf2_cpp
492+
$ colcon build --merge-install --packages-select learning_tf2_cpp
493493
494494
Open a new terminal, navigate to the root of your workspace, and source the setup files:
495495

@@ -499,13 +499,13 @@ Open a new terminal, navigate to the root of your workspace, and source the setu
499499

500500
.. code-block:: console
501501
502-
. install/setup.bash
502+
$ . install/setup.bash
503503
504504
.. group-tab:: macOS
505505

506506
.. code-block:: console
507507
508-
. install/setup.bash
508+
$ . install/setup.bash
509509
510510
.. group-tab:: Windows
511511

source/Tutorials/Intermediate/Tf2/Using-Stamped-Datatypes-With-Tf2-Ros-MessageFilter.rst

-5
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,6 @@ Now if you echo the topic ``turtle3/turtle_point_stamped``:
645645
.. code-block:: console
646646
647647
$ ros2 topic echo /turtle3/turtle_point_stamped
648-
649-
Then there will be output like this:
650-
651-
.. code-block:: console
652-
653648
header:
654649
stamp:
655650
sec: 1629877510

source/Tutorials/Intermediate/URDF/Using-Xacro-to-Clean-Up-a-URDF-File.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ To see the model generated by a xacro file, run the same command as with previou
238238

239239
.. code-block:: console
240240
241-
ros2 launch urdf_tutorial display.launch.py model:=urdf/08-macroed.urdf.xacro
241+
$ ros2 launch urdf_tutorial display.launch.py model:=urdf/08-macroed.urdf.xacro
242242
243243
(The launch file has been running the xacro command this whole time, but since there were no macros to expand, it didn't matter)
244244

source/Tutorials/Intermediate/Writing-an-Action-Server-Client/Py.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ You should see messages printed by the action server as it successfully executes
232232
[INFO] [fibonacci_action_server]: Feedback: array('i', [0, 1, 1, 2])
233233
[INFO] [fibonacci_action_server]: Feedback: array('i', [0, 1, 1, 2, 3])
234234
[INFO] [fibonacci_action_server]: Feedback: array('i', [0, 1, 1, 2, 3, 5])
235-
# etc.
235+
~ etc.
236236
237237
238238
.. group-tab:: macOS
@@ -245,7 +245,7 @@ You should see messages printed by the action server as it successfully executes
245245
[INFO] [fibonacci_action_server]: Feedback: array('i', [0, 1, 1, 2])
246246
[INFO] [fibonacci_action_server]: Feedback: array('i', [0, 1, 1, 2, 3])
247247
[INFO] [fibonacci_action_server]: Feedback: array('i', [0, 1, 1, 2, 3, 5])
248-
# etc.
248+
~ etc.
249249
250250
251251
.. group-tab:: Windows

source/Tutorials/Miscellaneous/Building-Realtime-rt_preempt-kernel-for-ROS-2.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,15 @@ Then we install all kernel deb packages
150150
$ sudo dpkg -i ../*.deb
151151
152152
Now the real time kernel should be installed.
153-
Reboot the system and check the new kernel version
153+
Reboot the system:
154154

155155
.. code-block:: console
156156
157157
$ sudo reboot
158-
uname -a
158+
159+
And check the new kernel version:
160+
161+
.. code-block:: console
162+
163+
$ uname -a
159164
Linux ros2host 5.4.78-rt44 #1 SMP PREEMPT_RT Fri Nov 6 10:37:59 CET 2020 x86_64 xx

0 commit comments

Comments
 (0)