Skip to main content
A class to represent the pose (position and orientation) of the robot. Every constructor form also takes the keyword frame_id.

Fields

Position
The position component of the pose.
Orientation
The orientation component of the pose.
Optional[str]
The coordinate frame of the pose, such as "base" or "camera", or None when no frame is stated.

Constructor

Signature

Methods

from_dict()

Signature
Deserialize from dictionary; the nested position and orientation are rebuilt. "frame_id" is optional; without it the pose has no frame.
required
Dictionary containing pose data
Returns: Pose: Reconstructed pose object

to_dict()

Signature
Serialize to dictionary for JSON transfer: {"position": {...}, "orientation": {...}}. "frame_id" is added only when the pose has a frame, so a pose without one serializes exactly as before the field existed. Returns: dict: Dictionary representation of the pose

to_matrix()

Signature
Convert Pose to a 4x4 homogeneous transformation matrix. Returns: np.ndarray: 4x4 homogeneous transformation matrix