unilab.utils.geometry.np_roll_pitch_from_quat
-
unilab.utils.geometry.np_roll_pitch_from_quat(quat)[source]
Roll and pitch (rad) from a w-first quaternion, computed via rotation-matrix rows.
Supports either (4,) or (..., 4) inputs. Returned arrays match
the caller’s leading shape and dtype (no upcast).
- Parameters:
quat (ndarray)
- Return type:
tuple[ndarray, ndarray]