@@ -67,22 +67,22 @@ Let's also make a new directory to store our saved recordings, just as good prac
67
67
68
68
.. code-block :: console
69
69
70
- mkdir bag_files
71
- cd bag_files
70
+ $ mkdir bag_files
71
+ $ cd bag_files
72
72
73
73
.. group-tab :: macOS
74
74
75
75
.. code-block :: console
76
76
77
- mkdir bag_files
78
- cd bag_files
77
+ $ mkdir bag_files
78
+ $ cd bag_files
79
79
80
80
.. group-tab :: Windows
81
81
82
82
.. code-block :: console
83
83
84
- md bag_files
85
- cd bag_files
84
+ $ md bag_files
85
+ $ cd bag_files
86
86
87
87
88
88
2 Choose a topic
@@ -441,15 +441,15 @@ You can see more details for :doc:`Action Introspection Demo <../../Demos/Action
441
441
442
442
Open a new terminal and run ``fibonacci_action_server ``, enabling ``Action Introspection ``:
443
443
444
- .. code-block :: bash
444
+ .. code-block :: console
445
445
446
- ros2 run action_tutorials_py fibonacci_action_server --ros-args -p action_server_configure_introspection:=contents
446
+ $ ros2 run action_tutorials_py fibonacci_action_server --ros-args -p action_server_configure_introspection:=contents
447
447
448
448
Open another terminal and run ``fibonacci_action_client ``, enabling ``Action Introspection ``:
449
449
450
- .. code-block :: bash
450
+ .. code-block :: console
451
451
452
- ros2 run action_tutorials_cpp fibonacci_action_client --ros-args -p action_client_configure_introspection:=contents
452
+ $ ros2 run action_tutorials_cpp fibonacci_action_client --ros-args -p action_client_configure_introspection:=contents
453
453
454
454
2 Check action availability
455
455
^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -488,15 +488,15 @@ Action data can be recorded with topics and services at the same time.
488
488
489
489
To record specific actions:
490
490
491
- .. code-block :: bash
491
+ .. code-block :: console
492
492
493
- ros2 bag record --action < action_names>
493
+ $ ros2 bag record --action <action_names>
494
494
495
495
To record all actions:
496
496
497
- .. code-block :: bash
497
+ .. code-block :: console
498
498
499
- ros2 bag record --all-actions
499
+ $ ros2 bag record --all-actions
500
500
501
501
Run the command:
502
502
@@ -594,16 +594,12 @@ This is because ``ros2 bag play`` sends the action goal request data from the ba
594
594
595
595
We can also introspect action communication as ``ros2 bag play `` is playing it back to verify the ``fibonacci_action_server ``.
596
596
597
- Run this command before ``ros2 bag play `` to see the ``fibonacci_action_server ``:
598
-
599
- .. code-block :: bash
600
-
601
- ros2 action echo --flow-style /fibonacci
602
-
603
- You can see the action goal request from the bag file and the service response from ``fibonacci_action_server ``.
597
+ Run this command before ``ros2 bag play `` to see the ``fibonacci_action_server ``.
598
+ You can see the action goal request from the bag file and the service response from ``fibonacci_action_server ``:
604
599
605
600
.. code-block :: console
606
601
602
+ $ ros2 action echo --flow-style /fibonacci
607
603
interface: STATUS_TOPIC
608
604
status_list: [{goal_info: {goal_id: {uuid: [34, 116, 225, 217, 48, 121, 146, 36, 240, 98, 99, 134, 55, 227, 184, 72]}, stamp: {sec: 1744953720, nanosec: 804984321}}, status: 4}]
609
605
---
0 commit comments