@@ -194,7 +194,13 @@ Tutorial steps
194
194
threedofbot_position_controller[forward_command_controller/ForwardCommandController] inactive
195
195
196
196
197
- 2. Activate ``RRBotWithSensor `` and its position controller. Call
197
+ 2. Activate ``RRBotWithSensor `` hardware component. Use either the ros2controlcli
198
+
199
+ .. code-block :: shell
200
+
201
+ ros2 control set_hardware_component_state RRBotSystemWithSensor active
202
+
203
+ or call the service manually
198
204
199
205
.. code-block :: shell
200
206
@@ -203,6 +209,11 @@ Tutorial steps
203
209
target_state:
204
210
id: 0
205
211
label: active"
212
+
213
+ Then activate its position controller via
214
+
215
+ .. code-block :: shell
216
+
206
217
ros2 control switch_controllers --activate rrbot_with_sensor_position_controller
207
218
208
219
Scenario state:
@@ -248,11 +259,7 @@ Tutorial steps
248
259
249
260
.. code-block :: shell
250
261
251
- ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
252
- name: FakeThreeDofBot
253
- target_state:
254
- id: 0
255
- label: inactive"
262
+ ros2 control set_hardware_component_state FakeThreeDofBot inactive
256
263
ros2 control switch_controllers --activate threedofbot_joint_state_broadcaster threedofbot_pid_gain_controller
257
264
258
265
Scenario state:
@@ -326,11 +333,7 @@ Tutorial steps
326
333
327
334
.. code-block :: shell
328
335
329
- ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
330
- name: FakeThreeDofBot
331
- target_state:
332
- id: 0
333
- label: active"
336
+ ros2 control set_hardware_component_state FakeThreeDofBot active
334
337
ros2 control switch_controllers --activate threedofbot_position_controller
335
338
336
339
Scenario state:
@@ -380,11 +383,7 @@ Tutorial steps
380
383
.. code-block :: shell
381
384
382
385
ros2 control switch_controllers --deactivate rrbot_position_controller
383
- ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
384
- name: RRBotSystemPositionOnly
385
- target_state:
386
- id: 0
387
- label: inactive"
386
+ ros2 control set_hardware_component_state RRBotSystemPositionOnly inactive
388
387
389
388
Scenario state:
390
389
@@ -430,16 +429,7 @@ Tutorial steps
430
429
.. code-block :: shell
431
430
432
431
ros2 control switch_controllers --deactivate rrbot_joint_state_broadcaster joint_state_broadcaster
433
- ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
434
- name: RRBotSystemPositionOnly
435
- target_state:
436
- id: 0
437
- label: unconfigured"
438
- ros2 service call /controller_manager/set_hardware_component_state controller_manager_msgs/srv/SetHardwareComponentState "
439
- name: RRBotSystemPositionOnly
440
- target_state:
441
- id: 0
442
- label: finalized"
432
+ ros2 control set_hardware_component_state RRBotSystemPositionOnly unconfigured
443
433
ros2 control switch_controllers --activate joint_state_broadcaster
444
434
445
435
Scenario state (everything is broken during ``joint_state_broadcaster `` restart):
0 commit comments