google-deepmind / mujoco

Multi-Joint dynamics with Contact. A general purpose physics simulator.

Home Page:https://mujoco.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Fix Position and Orientation Error

binbinbai opened this issue · comments

commented

Hello,

I am using MuJoCo 210 to control a robotic hand by setting the target position as the control signal. However, I have noticed a consistent position and orientation error between the commanded and the actual positions.

Would it be better to upgrade to a newer version of MuJoCo or adjust the motor gains to reduce this error?

Thank you for your assistance!

I'm assuming you're using position actuators. There will always be an error, position actuators are springs and the control signal sets the setpoint of the spring. When the target is achieved the force is 0 by definition, so you'll never get 0 error. Increasing the gains will reduce the error but never take it to 0.

That said, upgrading to the latest version is probably a good idea regardless.

commented

Thank you so much! @yuvaltassa