pylabrobot.resources.Rotation#

class pylabrobot.resources.Rotation(x: float = 0, y: float = 0, z: float = 0)#

Bases: SerializableMixin

Represents a 3D rotation.

Attributes

pitch

roll

x

Rotation around the x-axis in degrees (roll).

y

Rotation around the y-axis in degrees (pitch).

yaw

z

Rotation around the z-axis in degrees (yaw).

Methods

__init__([x, y, z])

get_rotation_matrix()

Return the rotation as a 3x3 matrix.

serialize()

Serialize using the public Euler-angle representation.

Parameters: