Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 import rospy
00019 import tf
00020
00021 if __name__ == '__main__':
00022 rospy.init_node('my_tf_broadcaster')
00023 br = tf.TransformBroadcaster()
00024 rate = rospy.Rate(10.0)
00025 while not rospy.is_shutdown():
00026 br.sendTransform((0,0,0.01),
00027 (0.0, 0.0, 0.0, 1.0),
00028 rospy.Time.now(),
00029 "map",
00030 "world")
00031
00032 try:
00033 rate.sleep()
00034 except rospy.ROSTimeMovedBackwardsException, e:
00035 rospy.logwarn("ROSTimeMovedBackwardsException during sleep(). Continue anyway...")
00036 except rospy.exceptions.ROSInterruptException as e:
00037 pass