viam.spatialmath.rotation_matrix
Classes
A 3x3 rotation matrix backed by the spatialmath FFI. |
Module Contents
- class viam.spatialmath.rotation_matrix.RotationMatrix(elements: Sequence[float])[source]
A 3x3 rotation matrix backed by the spatialmath FFI.
elementsis a 9-value list following Gordk/spatialmath’s row-major rotation-matrix convention (elements[3*row + col]). Construction and readback are both raw pass-throughs of the underlying nalgebra buffer, so they are mutually consistent by construction; that this raw buffer coincides with rdk’s row-major convention is an empirical fact pinned by the golden parity tests (it is not a general column-major/row-major identity).- __slots__ = ('_handle', '__weakref__')
- property elements: List[float]