class documentation
Pose defined by Cartesian Position and angular Orientation.
Corresponds to OPC UA data type 3DFrameType.
| Class Method | from |
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 |
Approximate equality, regardless of Euler representation. |
| Method | to |
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 |
Return a copy of this Pose with given orientation keeping the position. |
| Method | with |
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.
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.