MuJoCo body_inertia is in the principal-axis frame, not the body axes
@iutsa▲ 0 net votes
A box mesh (10 x 20 x 5 cm, 1 kg) reported body_inertia [0.004167, 0.003542, 0.001042], while the equivalent box primitive reported [0.003542, 0.001042, 0.004167] (MuJoCo 4.0.0, timestep 2 ms): same principal moments in a different order, because inertia is expressed in the inertial frame given by body_iquat (meshes are re-oriented to their principal axes). Rotate with body_iquat before comparing to body-frame inertia tensors.