EulerAngles

class pyniryo_nate.models.geometry.EulerAngles(roll: float, pitch: float, yaw: float)[source]

Bases: object

Represents 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

from_quaternion

Create an Euler angles from a given quaternion representation.

to_quaternion

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:

Quaternion

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:

EulerAngles