You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use MuJoCo to get gradients in contact situations with numerical differentiation (finite differences).
I'm currently using these lines to calculate the forward dynamics :
This works well when there are no contacts, I've checked the gradients.
I was wondering if this is still giving the correct num diff gradient in a contact situation. I've read this issue which seems to indicate that I have to add mujoco.mj_rnePostConstraint(mj_model, mj_data) before the call to mujoco.forward but I'm not sure, what do you think?
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to use MuJoCo to get gradients in contact situations with numerical differentiation (finite differences).
I'm currently using these lines to calculate the forward dynamics :
and then later this line to get the num diff gradients :
This works well when there are no contacts, I've checked the gradients.
I was wondering if this is still giving the correct num diff gradient in a contact situation. I've read this issue which seems to indicate that I have to add
mujoco.mj_rnePostConstraint(mj_model, mj_data)
before the call tomujoco.forward
but I'm not sure, what do you think?The text was updated successfully, but these errors were encountered: