so3
robotics · scripts/robotics/so3.m
SO3 SO(3) rotation (MATLAB Robotics System Toolbox R2026a scalar form).
R = so3 returns the identity rotation.
R = so3(ROTM) copies a 3-by-3 orthonormal rotation matrix (det +1).
R = so3(T) takes the upper-left 3-by-3 of a 4-by-4 homogeneous matrix.
R = so3(EUL, 'eul') and so3(EUL, 'eul', SEQUENCE) use eul2rotm.
The default Euler sequence is ZYX (MATLAB R2026a).
R = so3(Q, 'quat') uses a numeric [w x y z] quaternion.
R = so3(AXANG, 'axang') uses [x y z theta].
R = so3(ANGLE, 'rotx'|'roty'|'rotz') is a single-axis rotation.
Extraction: rotm(R) / R.rotm, quat(R), eul(R), axang(R), tform(R).
This helper builds one rotation. R2026a can return an N-element so3
array; multi-page inputs raise MATLAB:so3:scalarOnly here.
Behaviour locked to MATLAB R2026a for nexus#1806 (parity so3_identity).