static_overlay_text.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 # it depends on jsk_rviz_plugins
4 
5 import rospy
6 from jsk_rviz_plugins.msg import OverlayText
7 from jsk_rviz_plugins.overlay_text_interface import OverlayTextInterface
8 def publish_text(event):
9  text_interface.publish(str(text))
10 
11 if __name__ == "__main__":
12  rospy.init_node("static_overlay_text")
13  text = rospy.get_param("~text")
14  text_interface = OverlayTextInterface("~output")
15  rospy.Timer(rospy.Duration(0.1), publish_text)
16  rospy.spin()


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Thu Jun 1 2023 02:45:58