3 from jsk_rviz_plugins.msg
import OverlayText
5 import roslib; roslib.load_manifest(
"jsk_teleop_joy")
6 from jsk_rviz_plugins.msg
import OverlayText
7 from std_msgs.msg
import ColorRGBA
12 JSKJoyPlugin.__init__(self, name, args)
13 self.
pub = rospy.Publisher(
"/overlay_text", OverlayText)
22 def joyCB(self, status, history):
33 msg.width = self.
width
39 msg.fg_color = ColorRGBA(25 / 255.0, 1.0, 240.0 / 255.0, 1.0)
40 msg.bg_color = ColorRGBA(0.0, 0.0, 0.0, 0.2)
45 msg.action = OverlayText.DELETE