Skip to content
Discussion options

You must be logged in to vote

If I understand correctly, you are looking for the bias forces and the mass matrix. These are computer during mj_forward() and then you can just read them out from mjData. You can also call sub-component functions if you want this to be faster. The bias forces live in mjData.qfrc_bias (computed by mj_rne()). The mass matrix lives in mjData.qM (computed by mj_crb()) but it is in sparse form. Call mj_fullM() to get the dense representation.

Replies: 1 comment 18 replies

Comment options

You must be logged in to vote
18 replies
@saran-t
Comment options

@Balint-H
Comment options

Balint-H Sep 6, 2022
Collaborator

@yuvaltassa
Comment options

@saran-t
Comment options

@rohit-kumar-j
Comment options

Answer selected by rohit-kumar-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants