Represent orientation and rotation using the quaternion
data type. Convert between quaternions and Euler angles, rotation matrices,
and rotation vectors using the euler
, rotmat
,
and rotvec
functions.
To learn more about quaternion mathematics and how they are implemented in Sensor Fusion and Tracking Toolbox™, see Rotations, Orientation, and Quaternions. To learn more about conventions and coordinate systems in Sensor Fusion and Tracking Toolbox, see Orientation, Position, and Coordinate.
Rotations, Orientation, and Quaternions
This example reviews concepts in three-dimensional rotations and how quaternions are used to describe orientation and rotations.
Lowpass Filter Orientation Using Quaternion SLERP
This example shows how to use spherical linear interpolation (SLERP) to create sequences of quaternions and lowpass filter noisy trajectories.