pyrobosim.utils.pose.Pose.get_linear_distance

Pose.get_linear_distance(other, ignore_z=False)

Gets the straight-line distance between two poses.

Parameters:
  • other (pyrobosim.utils.pose.Pose) – Pose from which to get the linear distance.

  • ignore_z (bool) – If True, ignores the Z component of the distance.

Returns:

Linear distance between this and the other pose.

Return type:

float