Closed areiner222 closed 4 months ago
coming back here to say least_squares is magic - inverse kinematics with the previous state continuity regularization working really well
Nice @areiner222 !!
Thanks again for your help - really put me on a better track.
Had a couple more question to close the loop - any recommendations on how to:
Well 2 is just a better version of 1, right? You've got the right idea there. We have some code to do this in the mujoco_mpc repo, perhaps @erez-tom or @thowell can help you locate it, I think it's pretty straightforward to use.
Hi,
I'm using mujoco(-mjx) for imitation learning and am trying to determine the best (right?) way to compute qvel from mocap data.
I have a humanoid model and using 3 hinge joints associated will all bodies in the kinematic chain besides the root free joint. I'm able to infer qpos from the sequence of kinematic chain relative rotations by converting those rotations into xyz euler angles (I say this with some confidence because the rendered sequence of positions after computing forward kinematics matches my reference motion), but I'm not sure I am computing qvel properly. As of now, I am just doing finite differencing on the qpos (euler) angles (mocap running at 60hz). Is this a good way to do it? I try to account for angle wrapping by computing the qpos / euler angles sequentially ensuring a continuous representation. Do I need to factor joint ranges into this as well?
Thanks!