Skip to content

Commit

Permalink
Use new ros2controlcli verb
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 7, 2024
1 parent 54b02db commit 4d7e0ea
Showing 1 changed file with 16 additions and 26 deletions.
42 changes: 16 additions & 26 deletions example_13/doc/userdoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,13 @@ Tutorial steps
threedofbot_position_controller[forward_command_controller/ForwardCommandController] inactive
2. Activate ``RRBotWithSensor`` and its position controller. Call
2. Activate ``RRBotWithSensor`` hardware component. Use either the ros2controlcli

.. code-block:: shell
ros2 control set_hardware_component_state RRBotSystemWithSensor active
or call the service manually

.. code-block:: shell
Expand All @@ -203,6 +209,11 @@ Tutorial steps
target_state:
id: 0
label: active"
Then activate its position controller via

.. code-block:: shell
ros2 control switch_controllers --activate rrbot_with_sensor_position_controller
Scenario state:
Expand Down Expand Up @@ -248,11 +259,7 @@ Tutorial steps

.. code-block:: shell
ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
name: FakeThreeDofBot
target_state:
id: 0
label: inactive"
ros2 control set_hardware_component_state FakeThreeDofBot inactive
ros2 control switch_controllers --activate threedofbot_joint_state_broadcaster threedofbot_pid_gain_controller
Scenario state:
Expand Down Expand Up @@ -326,11 +333,7 @@ Tutorial steps

.. code-block:: shell
ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
name: FakeThreeDofBot
target_state:
id: 0
label: active"
ros2 control set_hardware_component_state FakeThreeDofBot active
ros2 control switch_controllers --activate threedofbot_position_controller
Scenario state:
Expand Down Expand Up @@ -380,11 +383,7 @@ Tutorial steps
.. code-block:: shell
ros2 control switch_controllers --deactivate rrbot_position_controller
ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
name: RRBotSystemPositionOnly
target_state:
id: 0
label: inactive"
ros2 control set_hardware_component_state RRBotSystemPositionOnly inactive
Scenario state:

Expand Down Expand Up @@ -430,16 +429,7 @@ Tutorial steps
.. code-block:: shell
ros2 control switch_controllers --deactivate rrbot_joint_state_broadcaster joint_state_broadcaster
ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
name: RRBotSystemPositionOnly
target_state:
id: 0
label: unconfigured"
ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
name: RRBotSystemPositionOnly
target_state:
id: 0
label: finalized"
ros2 control set_hardware_component_state RRBotSystemPositionOnly unconfigured
ros2 control switch_controllers --activate joint_state_broadcaster
Scenario state (everything is broken during ``joint_state_broadcaster`` restart):
Expand Down

0 comments on commit 4d7e0ea

Please sign in to comment.