champ icon indicating copy to clipboard operation
champ copied to clipboard

Champ on real robot.

Open elpimous opened this issue 2 years ago • 3 comments

Hello, https://youtu.be/Gj1NRvbrvHI Ylo2 real robot works on Champ (BLDC motors, working on Moteus controllers, using position mode), but anyway, a few questions : 1- Standup : Need to make a standup function : where should i call it, in your code ? 2- Robot height, when walking : where to change Robot Walking Height ? 3- Sitdown : where should i call it, in your code ?

elpimous avatar Jul 03 '22 13:07 elpimous

2 robot_height can be changed here : <your_robot_name>/config/gait.yaml/nominal_height : 0.3

elpimous avatar Jul 03 '22 14:07 elpimous

standing up and standing down can be done by changing the values of the target foot position sent to the inverse kinematics engine. This line changes those values https://github.com/chvmp/champ/blob/master/champ_base/src/quadruped_controller.cpp#L98 depending on the pose defined by the user. In your case you can get the initial foot position using the joints and perform forward kinematics and move towards a foot position that will make the robot stand / sit down over specified period of time.

grassjelly avatar Jul 03 '22 14:07 grassjelly

👍

elpimous avatar Mar 21 '23 13:03 elpimous