How to get a linearized model from mujoco #2619
-
My setupmujoco: 3.3.0, ubuntu My questionHello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, I am a MujoCo user, hope this helps: Please check the function mjd_transitionFD to obtain You may find earlier issues and discussions useful. Search with keywords: state transition matrix or mjd_transition. |
Beta Was this translation helpful? Give feedback.
Hi, I am a MujoCo user, hope this helps:
Please check the function mjd_transitionFD to obtain
A
andB
matrices using numerical finite differencing. I prefer to use the centered differences,flg_centered = True
. You need to set the equilibrium point by settingd.qpos
andd.qvel
. You can find a use case in the LQR tutorial here.You may find earlier issues and discussions useful. Search with keywords: state transition matrix or mjd_transition.