unitreerobotics / unitree_legged_sdk

SDK tools for control robots.
BSD 3-Clause "New" or "Revised" License
287 stars 160 forks source link

Position control without output torque command #111

Open dhruvkm2402 opened 1 year ago

dhruvkm2402 commented 1 year ago

Hello, I was changing parameters of the example_py position control script for testing. What I noticed is that for the hip joint, without inputting desired output torque it does not achieve the required angle. In the script of sine wave movement, for hip joint there is a desired output torque of -0.65 but 0 for others. Is it not possible to do a pure position control without estimating the desired output torque?

Charlescai123 commented 10 months ago

Yes, facing the same issue and wish to know how to resolve it

Charlescai123 commented 10 months ago

You need to set proper Kp and Kd inside the commands for each leg. The reason why it cannot achieve the desired position is probably because Kp/Kd are set pretty small. To make it work, identify suitable values for the parameters