Documentation Index
Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
Use this file to discover all available pages before exploring further.
Pose
Inherits from: object
A class to represent the pose (position and orientation) of the robot.
Attributes:
position (Position): The position component of the pose.
orientation (Orientation): The orientation component of the pose.
init
Pose.__init__(position: Position, orientation: Orientation) -> None
Initialize a Pose with position and orientation.
The position component of the pose
orientation (Orientation)
The orientation component of the pose
init
Pose.__init__(homogeneous_matrix: np.ndarray) -> None
Initialize a Pose with a homogeneous matrix.
homogeneous_matrix (np.ndarray)
4x4 homogeneous transformation matrix
init
Pose.__init__(pose_array: Union[list, np.ndarray]) -> None
Initialize a Pose with a 7-element array [x, y, z, qx, qy, qz, qw].
pose_array (Union[list, np.ndarray])
Union[list, np.ndarray]
required
7-element array containing position and quaternion
init
Pose.__init__(*args, **kwargs)
No docstring provided.
to_matrix
Pose.to_matrix() -> np.ndarray
Convert Pose to a 4x4 homogeneous transformation matrix.
4x4 homogeneous transformation matrix
to_dict
Serialize to dictionary for JSON transfer.
Dictionary representation of the pose
from_dict
Pose.from_dict(data: dict) -> 'Pose'
Deserialize from dictionary.
Dictionary containing pose data
Reconstructed pose object