Skip to content

Commit

Permalink
use the passthrough controller for chaining example
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Aug 3, 2023
1 parent dee31db commit 4f1e892
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions example_12/bringup/config/rrbot_chained_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ controller_manager:
type: joint_state_broadcaster/JointStateBroadcaster

joint1_position_controller:
type: forward_command_controller/ChainableForwardCommandController
type: passthrough_controller/PassthroughController

joint2_position_controller:
type: forward_command_controller/ChainableForwardCommandController
type: passthrough_controller/PassthroughController

position_controller:
type: forward_command_controller/ChainableForwardCommandController
type: passthrough_controller/PassthroughController

position_trajectory_controller:
type: joint_trajectory_controller/JointTrajectoryController
Expand All @@ -21,25 +21,20 @@ controller_manager:
# First-level controllers
joint1_position_controller:
ros__parameters:
joints:
- joint1
interface_name: position
interfaces: ["joint1/position"]


joint2_position_controller:
ros__parameters:
joints:
- joint2
interface_name: position
interfaces: ["joint2/position"]


# Second-level controller
position_controller:
ros__parameters:
joints:
- joint1_position_controller/joint1
- joint2_position_controller/joint2
interface_name: position
interfaces:
- joint1_position_controller/joint1/position
- joint2_position_controller/joint2/position


# Third-level controller
Expand Down

0 comments on commit 4f1e892

Please sign in to comment.