Rotation.interp_attitude¶
- Rotation.interp_attitude(data)[source]¶
This method interprets attitude data based on its shape and type.
If the type of the input is an
Rotation
object then the current instance is overwritten with the data from theRotation
object. If the type is a sequence then the data is interpreted by size. If the total size of the Sequence is 4 then the data is presumed to be a quaternion. If the total size of the sequence is 3 then the data is presumed to be a rotation vector. If the total size of the sequence is 9 then the data is presumed to be a rotation matrix.- Raises:
ValueError – If the size of the input data is not 3, 4, or 9
- Parameters:
data (Sequence | ndarray | Rotation) – The rotation data to be interpreted