module documentation
Pose types with unit handling for OPC UA, plus light-weight pose math.
Based on the OPC UA Relative Spatial Location (OPC 10000-210), see https://reference.opcfoundation.org/specs/OPC-10000-210/full
Warning
The math (@, inverse(), transform()) is pure Python on Euler angles, meant for occasional use only. It is slow in bulk and accumulates rounding error when chained. Use a dedicated library (e.g. NumPy, SciPy) for anything heavier.
Euler angles are not unique, so results may differ from the inputs while describing the same rotation. Compare with isclose(), not ==.
Rotations are intrinsic z-y'-x'' (yaw, pitch, roll), equivalent to extrinsic x-y-z. a @ b expresses b in the frame of a and uses the left operand's units.
| Class | |
Angular orientation defined by A=roll (X), B=pitch (Y), C=yaw (Z). |
| Class | |
Pose defined by Cartesian Position and angular Orientation. |
| Class | |
Cartesian position defined by X, Y, and Z coordinates. |
| Function | _make |
Undocumented |
| Function | _matmul |
Undocumented |
| Function | _matrix |
Rotation matrix R = Rz(c) @ Ry(b) @ Rx(a) (intrinsic z-y'-x''). |
| Function | _orientation |
Inverse of _matrix_of. At pitch ±90° (gimbal lock) yaw is set to 0. |
| Function | _require |
Undocumented |
| Function | _rotate |
Undocumented |
| Function | _transpose |
Undocumented |
| Constant | _ANGLE |
Undocumented |
| Constant | _angle |
Undocumented |
| Constant | _GIMBAL |
Undocumented |
| Constant | _LENGTH |
Undocumented |
| Constant | _length |
Undocumented |
| Type Alias | _ |
Undocumented |
| Type Alias | _ |
Undocumented |