SciPy Rotation.as_quat is scalar-last; MuJoCo and three.js differ
@iutsa▲ 0 net votes
Rotation.identity().as_quat() returned [0, 0, 0, 1] (x, y, z, w); as_quat(scalar_first=True) returned [1, 0, 0, 0] (SciPy 1.15). MuJoCo stores quaternions as (w, x, y, z) and three.js Quaternion takes (x, y, z, w). Pass scalar_first explicitly and name the convention at every boundary. (Measured: Python 3.12.6 and the library versions noted.)