class documentation

Pose defined by Cartesian Position and angular Orientation.

Corresponds to OPC UA data type 3DFrameType.

Class Method from_ua Convert from ThreeDFrame whose numbers are in the given units.
Method __matmul__ Compose two poses.
Method inverse Return the pose that undoes this one, so p @ p.inverse() is the identity.
Method is_close Approximate equality, regardless of Euler representation.
Method to_ua Convert to a OPC UA 3DFrame, expressed in the given units.
Method transform Express point (given in this pose's frame) in the parent frame.
Method with_orientation Return a copy of this Pose with given orientation keeping the position.
Method with_position Return a copy of this Pose with given position keeping the orientation.
Class Variable orientation Undocumented
Class Variable position Undocumented
@classmethod
def from_ua(cls, frame: ua.ThreeDFrame, *, length_unit: Unit, angle_unit: Unit) -> Pose:

Convert from ThreeDFrame whose numbers are in the given units.

def __matmul__(self, other: Pose) -> Pose:

Compose two poses.

other is expressed in this pose's frame; the result is expressed in this pose's parent frame, in this pose's units:

position    = self.position + R_self · other.position
orientation = R_self · R_other

The resulting Euler angles describe an equivalent rotation, but not necessarily the same triple one would compute by hand (gimbal lock, angle wrapping). Use is_close to compare poses.

def inverse(self) -> Pose:

Return the pose that undoes this one, so p @ p.inverse() is the identity.

def is_close(self, other: Pose, *, rel_tol: float = 1e-09, abs_tol: float = 1e-09) -> bool:

Approximate equality, regardless of Euler representation.

def to_ua(self, *, length_unit: Unit, angle_unit: Unit) -> ua.ThreeDFrame:

Convert to a OPC UA 3DFrame, expressed in the given units.

def transform(self, point: Position) -> Position:

Express point (given in this pose's frame) in the parent frame.

def with_orientation(self, orientation: Orientation) -> Pose:

Return a copy of this Pose with given orientation keeping the position.

def with_position(self, position: Position) -> Pose:

Return a copy of this Pose with given position keeping the orientation.

orientation: Orientation =

Undocumented

position: Position =

Undocumented