Skip to content

Commit

Permalink
Give the controller type as parameter in ctrl namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich committed Apr 25, 2024
1 parent f6d8c44 commit 9ab845c
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 72 deletions.
9 changes: 3 additions & 6 deletions example_1/bringup/config/rrbot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
type: forward_command_controller/ForwardCommandController

joint_trajectory_position_controller:
type: joint_trajectory_controller/JointTrajectoryController


forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
Expand All @@ -22,6 +17,8 @@ forward_position_controller:

joint_trajectory_position_controller:
ros__parameters:
type: joint_trajectory_controller/JointTrajectoryController

joints:
- joint1
- joint2
Expand Down
8 changes: 2 additions & 6 deletions example_10/bringup/config/rrbot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,18 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
type: forward_command_controller/ForwardCommandController

gpio_controller:
type: ros2_control_demo_example_10/GPIOController


forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
interface_name: position

gpio_controller:
ros__parameters:
type: ros2_control_demo_example_10/GPIOController
inputs:
- flange_analog_IOs/analog_output1
- flange_analog_IOs/analog_input1
Expand Down
4 changes: 1 addition & 3 deletions example_11/bringup/config/carlikebot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

bicycle_steering_controller:
type: bicycle_steering_controller/BicycleSteeringController


bicycle_steering_controller:
ros__parameters:
type: bicycle_steering_controller/BicycleSteeringController
wheelbase: 0.325
front_wheel_radius: 0.05
rear_wheel_radius: 0.05
Expand Down
17 changes: 4 additions & 13 deletions example_12/bringup/config/rrbot_chained_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,30 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

joint1_position_controller:
type: passthrough_controller/PassthroughController

joint2_position_controller:
type: passthrough_controller/PassthroughController

position_controller:
type: passthrough_controller/PassthroughController

forward_position_controller:
type: forward_command_controller/ForwardCommandController

# First-level controllers
joint1_position_controller:
ros__parameters:
type: passthrough_controller/PassthroughController
interfaces: ["joint1/position"]


joint2_position_controller:
ros__parameters:
type: passthrough_controller/PassthroughController
interfaces: ["joint2/position"]


# Second-level controller
position_controller:
ros__parameters:
type: passthrough_controller/PassthroughController
interfaces:
- joint1_position_controller/joint1/position
- joint2_position_controller/joint2/position

# Third-level controllers
forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- position_controller/joint1_position_controller/joint1
- position_controller/joint2_position_controller/joint2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_velocity_controller:
type: forward_command_controller/ForwardCommandController


forward_velocity_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
Expand Down
5 changes: 2 additions & 3 deletions example_2/bringup/config/diffbot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

diffbot_base_controller:
type: diff_drive_controller/DiffDriveController

diffbot_base_controller:
ros__parameters:
type: diff_drive_controller/DiffDriveController

left_wheel_names: ["left_wheel_joint"]
right_wheel_names: ["right_wheel_joint"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,41 @@ controller_manager:
ros__parameters:
update_rate: 100 # Hz

forward_position_controller:
type: position_controllers/JointGroupPositionController

forward_velocity_controller:
type: velocity_controllers/JointGroupVelocityController

forward_acceleration_controller:
type: forward_command_controller/ForwardCommandController

forward_illegal1_controller:
type: forward_command_controller/ForwardCommandController

forward_illegal2_controller:
type: forward_command_controller/ForwardCommandController

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
ros__parameters:
type: position_controllers/JointGroupPositionController
joints:
- joint1
- joint2

forward_velocity_controller:
ros__parameters:
type: velocity_controllers/JointGroupVelocityController
joints:
- joint1
- joint2

forward_acceleration_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
interface_name: acceleration

forward_illegal1_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
interface_name: position

forward_illegal2_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint2
interface_name: position
8 changes: 2 additions & 6 deletions example_4/bringup/config/rrbot_with_sensor_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,20 @@ controller_manager:
ros__parameters:
update_rate: 100 # Hz

forward_position_controller:
type: forward_command_controller/ForwardCommandController

fts_broadcaster:
type: force_torque_sensor_broadcaster/ForceTorqueSensorBroadcaster

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
interface_name: position

fts_broadcaster:
ros__parameters:
type: force_torque_sensor_broadcaster/ForceTorqueSensorBroadcaster
interface_names.force.x: tcp_fts_sensor/force.x
interface_names.torque.z: tcp_fts_sensor/torque.z
frame_id: tool_link
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,19 @@ controller_manager:
ros__parameters:
update_rate: 100 # Hz

forward_position_controller:
type: forward_command_controller/ForwardCommandController

fts_broadcaster:
type: force_torque_sensor_broadcaster/ForceTorqueSensorBroadcaster

joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
interface_name: position

fts_broadcaster:
ros__parameters:
type: force_torque_sensor_broadcaster/ForceTorqueSensorBroadcaster
sensor_name: tcp_fts_sensor
frame_id: tool_link
4 changes: 1 addition & 3 deletions example_6/bringup/config/rrbot_modular_actuators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
type: forward_command_controller/ForwardCommandController


forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
Expand Down
4 changes: 1 addition & 3 deletions example_7/bringup/config/r6bot_controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

r6bot_controller:
type: ros2_control_demo_example_7/RobotController


r6bot_controller:
ros__parameters:
type: ros2_control_demo_example_7/RobotController
joints:
- joint_1
- joint_2
Expand Down
4 changes: 1 addition & 3 deletions example_8/bringup/config/rrbot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
type: forward_command_controller/ForwardCommandController


forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
Expand Down
3 changes: 1 addition & 2 deletions example_9/bringup/config/rrbot_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ controller_manager:
joint_state_broadcaster:
type: joint_state_broadcaster/JointStateBroadcaster

forward_position_controller:
type: forward_command_controller/ForwardCommandController

forward_position_controller:
ros__parameters:
type: forward_command_controller/ForwardCommandController
joints:
- joint1
- joint2
Expand Down

0 comments on commit 9ab845c

Please sign in to comment.