chvmp / champ

MIT Cheetah I Implementation
BSD 3-Clause "New" or "Revised" License
1.52k stars 354 forks source link

Imu hardware, body pose #138

Closed Timofeibb closed 5 months ago

Timofeibb commented 5 months ago

is it possible to control the position of the robot body by imu? I have a sensor that publishes the data in topic imu/data, the Champ program is installed on the Raspberry Pi4 8gb and connected to a robot with 12 degrees of freedom with servo motors. When I change the position of the robot, /joint_group_effort_controller/joint_trajectory does not change the angle of the motors to maintain a horizontal position. Is this how it should be? Champ does not support body control via imu?

ekf node warn [ekf_node-6] [WARN] [1712468804.749590062] [base_to_footprint_ekf]: Warning: Some linear velocity entries in parameter imu0_config are listed true, but an sensor_msgs/Imu contains no information about linear velocities [ekf_node-6] Warning: imu/data is listed as an input topic, but all its update variables are false

imu topic output header: stamp: sec: 1712468881 nanosec: 593514334 frame_id: imu_link orientation: x: -0.014661329910962492 y: -0.017400852188573537 z: -0.9925796791592449 w: 0.11944804840801623 orientation_covariance:

_/joint_group_effort_controller/jointtrajectory output header: stamp: sec: 0 nanosec: 0 frame_id: '' joint_names:

926351982fd29965d274a725e724587

Timofeibb commented 5 months ago

https://github.com/chvmp/champ/assets/70883457/ee9e1323-21cf-4435-b4e6-cd313179774b

solved this problem by changing input topic for body pose and some other additional parts