static_overlay_text.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 # it depends on jsk_rviz_plugins
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()


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Wed May 1 2019 02:40:22