Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am interested in using mjd_transitionFD for my simulations, but I wanted to see how it compared with MATLAB's c2d. So I ran mjd_transitionFD and c2d on a simple inverted pendulum model. I used several of c2d's discretization methods and have tabulated the results below:
Math is according to https://en.wikipedia.org/wiki/Discretization
In comparison to MATLAB's ZOH method, mjd_transitionFD has some differences in the A matrix (A21) and the entire B matrix. I know that the MuJoCo API mentions that mjd_transitionFD produces "Finite differenced state-transition and control-transition matrices dx(t+h) = Adx(t) + Bdu(t)". I have also reviewed the humanoid standing balance, so I know that the A and B matrices which are produced are good enough for control, but if possible I wanted more insight into the inner workings of mjd_transitionFD.
-Daniel
Beta Was this translation helpful? Give feedback.
All reactions