Skip to content

How to get a linearized model from mujoco #2619

Discussion options

You must be logged in to vote

Hi, I am a MujoCo user, hope this helps:

Please check the function mjd_transitionFD to obtain A and B matrices using numerical finite differencing. I prefer to use the centered differences, flg_centered = True. You need to set the equilibrium point by setting d.qpos and d.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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bolorkhuu
Comment options

@v-r-a
Comment options

Answer selected by bolorkhuu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants