pose_format.utils.pose_converter module

Functions:

convert_pose(pose, pose_components)

converts the given pose to a new pose instance based on given pose components.

save_image(pose, name)

Saves visualized pose as an image with a given name

pose_format.utils.pose_converter.convert_pose(pose, pose_components)[source]

converts the given pose to a new pose instance based on given pose components.

Parameters:
  • pose (Pose) – The initial pose object to convert

  • pose_components (List[PoseHeaderComponent]) – the new set of pose components to define the pose structure

Returns:

Converted pose object

Return type:

Pose

pose_format.utils.pose_converter.save_image(pose, name)[source]

Saves visualized pose as an image with a given name

Parameters:
  • pose (Pose) – Pose to be visualized and saved

  • name (str) – Name to save image to.