class documentation
class CartesianFrame(UaObject, ParentMixin[
Known subclasses: server.spatial_object.PositionFrame, server.spatial_object.WorldFrame
Constructor: CartesianFrame(name, position, orientation, base, ...)
Describes the translation and rotation of an object relative to a base coordinate frame.
The position is represented by the Cartesian coordinates X, Y, and Z. The orientation is represented by the angles A, B, and C, corresponding to roll, pitch, and yaw respectively.
See also CartesianFrameAngleOrientationType from OPC UA Part 210: Relative Spacial Location specification. https://reference.opcfoundation.org/specs/OPC-10000-210/7.3
| Method | __init__ |
Initialize a Cartesian frame with position and orientation. |
| Async Method | lifecycle |
Initialize the Cartesian frame. |
| Async Method | read |
Read the base coordinate frame reference from the OPC UA server. |
| Async Method | read |
Read the angular orientation from the OPC UA server. |
| Async Method | read |
Read the Cartesian position from the OPC UA server. |
| Async Method | write |
Write the base coordinate frame reference to the OPC UA server. |
| Async Method | write |
Write given angular orientation to the OPC UA server. |
| Async Method | write |
Write the given Cartesian position to the OPC UA server. |
| Async Method | _get |
Undocumented |
| Instance Variable | _base |
Undocumented |
| Instance Variable | _name |
Undocumented |
| Instance Variable | _orientation |
Undocumented |
| Instance Variable | _position |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
def __init__(self, *, name:
str, position: Position, orientation: Orientation, base: CartesianFrame | None, **kwargs):
¶
Initialize a Cartesian frame with position and orientation.
| Parameters | |
name:str | Name of the frame. |
position:Position | Translation of the frame relative to the base frame, represented by X, Y, and Z. |
orientation:Orientation | Orientation of the frame relative to the base frame, represented by A (roll about X), B (pitch about Y), and C (yaw about Z). |
base:CartesianFrame | None | Optional Node ID of the base frame relative to which this frame is specified. |
| **kwargs | Undocumented |