class CartesianFrame(UaObject):
Known subclasses: server.spatial_object.PositionFrame, server.spatial_object.WorldFrame
Constructor: CartesianFrame(name, initial_pose, initial_base, minimum_access_level, ...)
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 | on |
Handle OPC UA data change notification to keep children in sync. |
| Async Method | read |
Read the base coordinate frame reference from the OPC UA server. |
| Async Method | read |
Read the UA node ID of the base coordinate frame. |
| Async Method | read |
Read the angular orientation from the OPC UA server. |
| Async Method | read |
Read the current pose of this frame relative to its base. |
| Async Method | read |
Read the Cartesian position from the OPC UA server. |
| Async Method | update |
Replace position and/or orientation, keeping the rest. Returns the new pose. |
| 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. Keeps the current position of the frame. |
| Async Method | write |
Replace the pose of this frame. |
| Async Method | write |
Write the given Cartesian position to the OPC UA server. Keeps the current orientation of the frame. |
| Async Method | _get |
Undocumented |
| Async Method | _read |
Undocumented |
| Async Method | _sync |
Undocumented |
| Async Method | _write |
Undocumented |
| Instance Variable | _angle |
Undocumented |
| Instance Variable | _datachange |
Undocumented |
| Instance Variable | _frame |
Undocumented |
| Instance Variable | _initial |
Undocumented |
| Instance Variable | _initial |
Undocumented |
| Instance Variable | _length |
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 |
str, initial_pose: Pose, initial_base: CartesianFrame | ua.NodeId | None, minimum_access_level: int | None = None, bypass_lock: bool = False, **kwargs):
¶
Initialize a Cartesian frame with position and orientation.
| Parameters | |
name:str | Name of the frame. |
initialPose | 3D Pose of the frame. |
initialCartesianFrame | ua.NodeId | None | Optional frame or a node ID of the base frame relative to which this frame is specified. |
minimumint | None | Minimum write access level of the frame variable. Read access is always allowed. |
bypassbool | Whether the frame variable can be written to without ownership of the corresponding lock. |
| **kwargs | Undocumented |
Read the base coordinate frame reference from the OPC UA server.
| Returns | |
CartesianFrame | None | The Python Cartesian frame reference or None if no Python frame reference is found. |
Read the UA node ID of the base coordinate frame.
| Returns | |
ua.NodeId | None | UA node ID or None if ua.NodeId is null or non-existent. |
Unit | None = None, angle_unit: Unit | None = None) -> Pose:
¶
Read the current pose of this frame relative to its base.
Position | None = None, orientation: Orientation | None = None) -> Pose:
¶
Replace position and/or orientation, keeping the rest. Returns the new pose.