mjData.xquat vs mjData.xmat #343
Answered
by
yuvaltassa
rohit-kumar-j
asked this question in
Asking for Help
-
What is the difference between
|
Beta Was this translation helpful? Give feedback.
Answered by
yuvaltassa
Jun 12, 2022
Replies: 1 comment
-
The former is a quaternion, the latter is a rotation matrix. They represent the same thing (body orientation) in different ways. You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rohit-kumar-j
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The former is a quaternion, the latter is a rotation matrix. They represent the same thing (body orientation) in different ways. You can use
mju_quat2Mat
andmju_mat2Quat
to convert between the two representations.