Quaternion

class pyniryo_nate.models.geometry.Quaternion(x: float, y: float, z: float, w: float)[source]

Bases: object

Represents orientation using quaternion representation.

Parameters:
  • x (float) – The x component of the quaternion.

  • y (float) – The y component of the quaternion.

  • z (float) – The z component of the quaternion.

  • w (float) – The w (scalar) component of the quaternion.

Attributes

x

y

z

w

Methods

x: float
y: float
z: float
w: float
classmethod from_transport_model(model: Quaternion | dict[str, float]) → Quaternion[source]
Parameters:

model (Quaternion | dict[str, float])

Return type:

Quaternion

to_transport_model() → Quaternion[source]
Return type:

Quaternion