Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into new_node
  • Loading branch information
MiyabiTane committed Dec 1, 2020
2 parents 6d68589 + 9291966 commit cef5ab6
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 cef5ab6

Please sign in to comment.