36 import geometry_msgs.msg
38 if __name__ ==
'__main__':
39 rospy.init_node(
'fixed_tf2_broadcaster')
41 t = geometry_msgs.msg.TransformStamped()
43 t.header.frame_id =
"turtle1" 44 t.child_frame_id =
"carrot1" 45 t.transform.translation.x = 0.0
46 t.transform.translation.y = 2.0
47 t.transform.translation.z = 0.0
48 t.transform.rotation.x = 0.0
49 t.transform.rotation.y = 0.0
50 t.transform.rotation.z = 0.0
51 t.transform.rotation.w = 1.0
53 rate = rospy.Rate(10.0)
54 while not rospy.is_shutdown():
55 t.header.stamp = rospy.Time.now()