43 br.sendTransform((msg.x, msg.y, 0),
44 tf.transformations.quaternion_from_euler(0, 0, msg.theta),
49 if __name__ ==
'__main__':
50 rospy.init_node(
'turtle_tf_broadcaster')
51 turtlename = rospy.get_param(
'~turtle')
52 rospy.Subscriber(
'/%s/pose' % turtlename,
def handle_turtle_pose(msg, turtlename)