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()
static_overlay_text.publish_text
def publish_text(event)
Definition: static_overlay_text.py:8
msg
jsk_rviz_plugins.overlay_text_interface
Definition: overlay_text_interface.py:1
jsk_rviz_plugins.overlay_text_interface.OverlayTextInterface
Definition: overlay_text_interface.py:8


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Aug 2 2024 08:50:15