Go to the documentation of this file.00001
00002
00003
00004
00005 import rospy
00006 from jsk_rviz_plugins.msg import OverlayText
00007 from jsk_rviz_plugins.overlay_text_interface import OverlayTextInterface
00008 def publish_text(event):
00009 text_interface.publish(str(text))
00010
00011 if __name__ == "__main__":
00012 rospy.init_node("static_overlay_text")
00013 text = rospy.get_param("~text")
00014 text_interface = OverlayTextInterface("~output")
00015 rospy.Timer(rospy.Duration(0.1), publish_text)
00016 rospy.spin()