Case Study: A Dive Into Unitree-Mujoco
Base and Joint Data
The state of the robot can be accessed via the mj_data.qpos
and mj_data.qvel
fields.
These two fields are two numpy.ndarray
that stores both the base state as well as the joint state.
The shape of qpos
is 3 + 4 + n_dof
, which composes of the base xyz position, base rotation in quaternion, and all the joint rotation positions.
The shape of qvel
is 3 + 3 + n_dof
. The only difference from the qpos is that the angular rotation is expressed in euler angle, instead of quaternions.
Joint Ordering
Different from IsaacLab, which orders the joint in a breath-first search fashion and ordered by capital letter, Mujoco uses a depth-first search. Therefore, the joint order will be different. Here's an example for the A1 robot.
Mujoco Mapping:
IsaacLab Mapping
Last updated