Skip to content

Commit

Permalink
Update jsk_pcl_ros_utils/scripts/xyz_to_screenpoint.py
Browse files Browse the repository at this point in the history
Co-authored-by: Shingo Kitagawa <[email protected]>
  • Loading branch information
MiyabiTane and knorth55 authored Nov 19, 2020
1 parent e152f92 commit 9291966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsk_pcl_ros_utils/scripts/xyz_to_screenpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def point_stamped_cb(self, msg):
try:
transform = self.tf_buffer.lookup_transform(self.frame_id, msg.header.frame_id, rospy.Time(0), rospy.Duration(1.0))
except (tf2_ros.LookupException, tf2_ros.ConnectivityException, tf2_ros.ExtrapolationException) as e:
print(e)
rospy.logerr('lookup_transform failed: {}'.format(e))
return
position_transformed = tf2_geometry_msgs.do_transform_pose(pose_stamped, transform).pose.position
pub_point = (position_transformed.x, position_transformed.y, position_transformed.z)
Expand Down

0 comments on commit 9291966

Please sign in to comment.