pyrobosim.utils.pose.Pose.from_dict

classmethod Pose.from_dict(pose_dict: dict[str, Any]) Self

Creates a pose from a dictionary.

The keys of this dictionary can be as follows:

position:
  x: 1.0
  y: 2.0
  z: 3.0
rotation_eul:
  yaw: 0.5
  pitch: 0.6
  roll: 0.7
  angle_units: "radians"
rotation_quat:
  w: 0.7071
  x: 0.0
  y: -0.7071
  z: 0.0

Note that the rotation_quat key overrides the rotation_eul key.

Parameters:

pose_dict – A pose dictionary.

Returns:

Pose object