Quaternion¶
- class pyniryo_nate.models.geometry.Quaternion(x: float, y: float, z: float, w: float)[source]¶
Bases:
objectRepresents 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
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: