@@ -290,7 +290,7 @@ One way is to pass the ``target_frame`` argument to the launch file directly fro
290
290
291
291
.. code-block :: console
292
292
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
294
294
295
295
The second way is to update the launch file.
296
296
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
322
322
323
323
.. code-block :: console
324
324
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
326
326
327
327
.. group-tab :: macOS
328
328
329
329
.. code-block :: console
330
330
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
332
332
333
333
.. group-tab :: Windows
334
334
335
335
In a Windows command line prompt:
336
336
337
337
.. code-block :: console
338
338
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
340
340
341
341
Or in powershell:
342
342
343
343
.. code-block :: console
344
344
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
346
346
347
347
Now open the file called ``dynamic_frame_tf2_broadcaster.cpp ``:
348
348
@@ -459,7 +459,7 @@ Run ``rosdep`` in the root of your workspace to check for missing dependencies.
459
459
460
460
.. code-block :: console
461
461
462
- rosdep install -i --from-path src --rosdistro {DISTRO} -y
462
+ $ rosdep install -i --from-path src --rosdistro {DISTRO} -y
463
463
464
464
.. group-tab :: macOS
465
465
@@ -477,19 +477,19 @@ Still in the root of your workspace, build your package:
477
477
478
478
.. code-block :: console
479
479
480
- colcon build --packages-select learning_tf2_cpp
480
+ $ colcon build --packages-select learning_tf2_cpp
481
481
482
482
.. group-tab :: macOS
483
483
484
484
.. code-block :: console
485
485
486
- colcon build --packages-select learning_tf2_cpp
486
+ $ colcon build --packages-select learning_tf2_cpp
487
487
488
488
.. group-tab :: Windows
489
489
490
490
.. code-block :: console
491
491
492
- colcon build --merge-install --packages-select learning_tf2_cpp
492
+ $ colcon build --merge-install --packages-select learning_tf2_cpp
493
493
494
494
Open a new terminal, navigate to the root of your workspace, and source the setup files:
495
495
@@ -499,13 +499,13 @@ Open a new terminal, navigate to the root of your workspace, and source the setu
499
499
500
500
.. code-block :: console
501
501
502
- . install/setup.bash
502
+ $ . install/setup.bash
503
503
504
504
.. group-tab :: macOS
505
505
506
506
.. code-block :: console
507
507
508
- . install/setup.bash
508
+ $ . install/setup.bash
509
509
510
510
.. group-tab :: Windows
511
511
0 commit comments