4 from geometry_msgs.msg
import PointStamped
9 local_frame_id = point.header.frame_id
10 if not local_frame_id:
11 local_frame_id = frame_id
13 (point.point.x, point.point.y, point.point.z),
14 tf.transformations.quaternion_from_euler(0,0,0),
19 if __name__ ==
"__main__":
21 rospy.init_node(
"point_to_tf", anonymous=
True)
23 frame_id = rospy.get_param(
'~frame_id',
'point')
24 fixed_frame_id = rospy.get_param(
'~fixed_frame_id',
'world')
27 rospy.Subscriber(
"point", PointStamped, callback, queue_size=1)