3 This script broadcasts a tf frame called odom_rot that spins about the z axis 4 at a slow rate but also allows its yaw to be set at the command line. 5 The yaw is listed on the command line in radians. 24 while not rospy.is_shutdown():
25 new_yaw = raw_input(
"Enter new yaw[" + str(odom_transform.yaw) +
"]: ")
28 odom_transform.yaw = float(new_yaw)
35 rospy.init_node(
"odom_rot")
41 kb_th = threading.Thread(target=updateTransform, args=(odom_rot,))
50 while not rospy.is_shutdown():
51 br.sendTransform((odom_rot.x, odom_rot.y, odom_rot.z),
52 tf.transformations.quaternion_from_euler(odom_rot.roll, odom_rot.pitch, odom_rot.yaw),
57 odom_rot.yaw += 0.0001
61 if __name__ ==
"__main__":
def updateTransform(odom_transform)