EulerAngles¶
- class pyniryo_nate.models.geometry.EulerAngles(roll: float, pitch: float, yaw: float)[source]¶
Bases:
objectRepresents orientation using Euler angles (roll, pitch, yaw).
- Parameters:
roll (float) – Rotation around the x-axis in radians.
pitch (float) – Rotation around the y-axis in radians.
yaw (float) – Rotation around the z-axis in radians.
Attributes
Methods
Create an Euler angles from a given quaternion representation.
Convert Euler angles to quaternion representation.
- roll: float¶
- pitch: float¶
- yaw: float¶
- to_quaternion() Quaternion[source]¶
Convert Euler angles to quaternion representation.
- Returns:
The equivalent Quaternion representation.
- Return type:
- classmethod from_quaternion(quaternion: Quaternion) EulerAngles[source]¶
Create an Euler angles from a given quaternion representation.
- Parameters:
quaternion (Quaternion) – The quaternion to convert.
- Returns:
- Return type: