@@ -292,7 +292,11 @@ 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
+ <<<<<<< HEAD
295
296
ros2 launch learning_tf2_cpp turtle_tf2_fixed_frame_demo.launch.py target_frame:=carrot1
297
+ =======
298
+ $ ros2 launch learning_tf2_cpp turtle_tf2_fixed_frame_demo_launch.py target_frame:=carrot1
299
+ >>>>>>> dda0a68 (Add $ to Intermediate and Miscellaneous (#5351))
296
300
297
301
The second way is to update the launch file.
298
302
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 +328,27 @@ Inside the ``src`` directory download the dynamic frame broadcaster code by ente
324
328
325
329
.. code-block :: console
326
330
327
- 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
328
332
329
333
.. group-tab :: macOS
330
334
331
335
.. code-block :: console
332
336
333
- wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
337
+ $ wget https://raw.githubusercontent.com/ros/geometry_tutorials/ros2/turtle_tf2_cpp/src/dynamic_frame_tf2_broadcaster.cpp
334
338
335
339
.. group-tab :: Windows
336
340
337
341
In a Windows command line prompt:
338
342
339
343
.. code-block :: console
340
344
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
345
+ $ 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
346
343
347
Or in powershell:
344
348
345
349
.. code-block :: console
346
350
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
351
+ $ 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
352
349
353
Now open the file called ``dynamic_frame_tf2_broadcaster.cpp ``:
350
354
@@ -463,7 +467,7 @@ Run ``rosdep`` in the root of your workspace to check for missing dependencies.
463
467
464
468
.. code-block :: console
465
469
466
- rosdep install -i --from-path src --rosdistro {DISTRO} -y
470
+ $ rosdep install -i --from-path src --rosdistro {DISTRO} -y
467
471
468
472
.. group-tab :: macOS
469
473
@@ -481,19 +485,19 @@ Still in the root of your workspace, build your package:
481
485
482
486
.. code-block :: console
483
487
484
- colcon build --packages-select learning_tf2_cpp
488
+ $ colcon build --packages-select learning_tf2_cpp
485
489
486
490
.. group-tab :: macOS
487
491
488
492
.. code-block :: console
489
493
490
- colcon build --packages-select learning_tf2_cpp
494
+ $ colcon build --packages-select learning_tf2_cpp
491
495
492
496
.. group-tab :: Windows
493
497
494
498
.. code-block :: console
495
499
496
- colcon build --merge-install --packages-select learning_tf2_cpp
500
+ $ colcon build --merge-install --packages-select learning_tf2_cpp
497
501
498
502
Open a new terminal, navigate to the root of your workspace, and source the setup files:
499
503
@@ -503,13 +507,13 @@ Open a new terminal, navigate to the root of your workspace, and source the setu
503
507
504
508
.. code-block :: console
505
509
506
- . install/setup.bash
510
+ $ . install/setup.bash
507
511
508
512
.. group-tab :: macOS
509
513
510
514
.. code-block :: console
511
515
512
- . install/setup.bash
516
+ $ . install/setup.bash
513
517
514
518
.. group-tab :: Windows
515
519
0 commit comments