@@ -292,7 +292,7 @@ One way is to pass the ``target_frame`` argument to the launch file directly fro
292
292
293
293
.. code-block :: console
294
294
295
- ros2 launch learning_tf2_cpp turtle_tf2_fixed_frame_demo.launch.py target_frame:=carrot1
295
+ $ ros2 launch learning_tf2_cpp turtle_tf2_fixed_frame_demo.launch.py target_frame:=carrot1
296
296
297
297
The second way is to update the launch file.
298
298
To do so, open the ``turtle_tf2_fixed_frame_demo.launch.py `` file, and add the ``'target_frame': 'carrot1' `` parameter via ``launch_arguments `` argument.
@@ -324,27 +324,27 @@ Inside the ``src`` directory download the dynamic frame broadcaster code by ente
324
324
325
325
.. code-block :: console
326
326
327
- wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
327
+ $ wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
328
328
329
329
.. group-tab :: macOS
330
330
331
331
.. code-block :: console
332
332
333
- wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
333
+ $ wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
334
334
335
335
.. group-tab :: Windows
336
336
337
337
In a Windows command line prompt:
338
338
339
339
.. code-block :: console
340
340
341
- 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
341
+ $ 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
342
342
343
343
Or in powershell:
344
344
345
345
.. code-block :: console
346
346
347
- curl https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp -o dynamic_frame_tf2_broadcaster.cpp
347
+ $ curl https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp -o dynamic_frame_tf2_broadcaster.cpp
348
348
349
349
Now open the file called ``dynamic_frame_tf2_broadcaster.cpp ``:
350
350
@@ -463,7 +463,7 @@ Run ``rosdep`` in the root of your workspace to check for missing dependencies.
463
463
464
464
.. code-block :: console
465
465
466
- rosdep install -i --from-path src --rosdistro {DISTRO} -y
466
+ $ rosdep install -i --from-path src --rosdistro {DISTRO} -y
467
467
468
468
.. group-tab :: macOS
469
469
@@ -481,19 +481,19 @@ Still in the root of your workspace, build your package:
481
481
482
482
.. code-block :: console
483
483
484
- colcon build --packages-select learning_tf2_cpp
484
+ $ colcon build --packages-select learning_tf2_cpp
485
485
486
486
.. group-tab :: macOS
487
487
488
488
.. code-block :: console
489
489
490
- colcon build --packages-select learning_tf2_cpp
490
+ $ colcon build --packages-select learning_tf2_cpp
491
491
492
492
.. group-tab :: Windows
493
493
494
494
.. code-block :: console
495
495
496
- colcon build --merge-install --packages-select learning_tf2_cpp
496
+ $ colcon build --merge-install --packages-select learning_tf2_cpp
497
497
498
498
Open a new terminal, navigate to the root of your workspace, and source the setup files:
499
499
@@ -503,13 +503,13 @@ Open a new terminal, navigate to the root of your workspace, and source the setu
503
503
504
504
.. code-block :: console
505
505
506
- . install/setup.bash
506
+ $ . install/setup.bash
507
507
508
508
.. group-tab :: macOS
509
509
510
510
.. code-block :: console
511
511
512
- . install/setup.bash
512
+ $ . install/setup.bash
513
513
514
514
.. group-tab :: Windows
515
515
0 commit comments