2024-10-09 21:17:45 +08:00
|
|
|
# Controller Manager configuration
|
|
|
|
controller_manager:
|
|
|
|
ros__parameters:
|
|
|
|
update_rate: 2000 # Hz
|
|
|
|
|
|
|
|
# Define the available controllers
|
|
|
|
joint_state_broadcaster:
|
|
|
|
type: joint_state_broadcaster/JointStateBroadcaster
|
|
|
|
|
|
|
|
imu_sensor_broadcaster:
|
|
|
|
type: imu_sensor_broadcaster/IMUSensorBroadcaster
|
|
|
|
|
|
|
|
leg_pd_controller:
|
|
|
|
type: leg_pd_controller/LegPdController
|
|
|
|
|
|
|
|
unitree_guide_controller:
|
|
|
|
type: unitree_guide_controller/UnitreeGuideController
|
|
|
|
|
2024-10-10 21:22:58 +08:00
|
|
|
rl_quadruped_controller:
|
|
|
|
type: rl_quadruped_controller/LeggedGymController
|
2024-10-09 21:17:45 +08:00
|
|
|
|
|
|
|
imu_sensor_broadcaster:
|
|
|
|
ros__parameters:
|
|
|
|
sensor_name: "imu_sensor"
|
|
|
|
frame_id: "imu_link"
|
|
|
|
|
|
|
|
leg_pd_controller:
|
|
|
|
ros__parameters:
|
|
|
|
joints:
|
|
|
|
- FR_HipX
|
|
|
|
- FR_HipY
|
|
|
|
- FR_Knee
|
|
|
|
- FL_HipX
|
|
|
|
- FL_HipY
|
|
|
|
- FL_Knee
|
|
|
|
- HR_HipX
|
|
|
|
- HR_HipY
|
|
|
|
- HR_Knee
|
|
|
|
- HL_HipX
|
|
|
|
- HL_HipY
|
|
|
|
- HL_Knee
|
|
|
|
|
|
|
|
command_interfaces:
|
|
|
|
- effort
|
|
|
|
|
|
|
|
state_interfaces:
|
|
|
|
- position
|
|
|
|
- velocity
|
|
|
|
|
|
|
|
unitree_guide_controller:
|
|
|
|
ros__parameters:
|
|
|
|
update_rate: 200 # Hz
|
|
|
|
command_prefix: "leg_pd_controller"
|
|
|
|
joints:
|
|
|
|
- FR_HipX
|
|
|
|
- FR_HipY
|
|
|
|
- FR_Knee
|
|
|
|
- FL_HipX
|
|
|
|
- FL_HipY
|
|
|
|
- FL_Knee
|
|
|
|
- HR_HipX
|
|
|
|
- HR_HipY
|
|
|
|
- HR_Knee
|
|
|
|
- HL_HipX
|
|
|
|
- HL_HipY
|
|
|
|
- HL_Knee
|
|
|
|
|
2024-10-21 21:47:25 +08:00
|
|
|
down_pos:
|
|
|
|
- 0.0
|
|
|
|
- -1.22
|
|
|
|
- 2.61
|
|
|
|
- 0.0
|
|
|
|
- -1.22
|
|
|
|
- 2.61
|
|
|
|
- 0.0
|
|
|
|
- -1.22
|
|
|
|
- 2.61
|
|
|
|
- 0.0
|
|
|
|
- -1.22
|
|
|
|
- 2.61
|
|
|
|
|
|
|
|
stand_pos:
|
|
|
|
- 0.0
|
|
|
|
- -0.732
|
|
|
|
- 1.361
|
|
|
|
- 0.0
|
|
|
|
- -0.732
|
|
|
|
- 1.361
|
|
|
|
- 0.0
|
|
|
|
- -0.732
|
|
|
|
- 1.361
|
|
|
|
- 0.0
|
|
|
|
- -0.732
|
|
|
|
- 1.361
|
|
|
|
|
2024-10-09 21:17:45 +08:00
|
|
|
command_interfaces:
|
|
|
|
- effort
|
|
|
|
- position
|
|
|
|
- velocity
|
|
|
|
- kp
|
|
|
|
- kd
|
|
|
|
|
|
|
|
state_interfaces:
|
|
|
|
- effort
|
|
|
|
- position
|
|
|
|
- velocity
|
|
|
|
|
|
|
|
feet_names:
|
|
|
|
- FR_FOOT
|
|
|
|
- FL_FOOT
|
|
|
|
- HR_FOOT
|
|
|
|
- HL_FOOT
|
|
|
|
|
|
|
|
imu_name: "imu_sensor"
|
|
|
|
base_name: "base"
|
|
|
|
|
|
|
|
imu_interfaces:
|
|
|
|
- orientation.w
|
|
|
|
- orientation.x
|
|
|
|
- orientation.y
|
|
|
|
- orientation.z
|
|
|
|
- angular_velocity.x
|
|
|
|
- angular_velocity.y
|
|
|
|
- angular_velocity.z
|
|
|
|
- linear_acceleration.x
|
|
|
|
- linear_acceleration.y
|
|
|
|
- linear_acceleration.z
|