6 from jsk_rviz_plugins.msg
import OverlayText
7 from std_msgs.msg
import Float32
8 from threading
import Lock
12 g_tracker_status_msg =
None 14 global g_tracker_status_msg
16 g_tracker_status_msg = msg
19 if g_tracker_status_msg:
20 if g_tracker_status_msg.is_tracking:
21 status_interface.publish(
'Tracker Status: <span style="color: red;">Tracking</span>')
23 status_interface.publish(
'Tracker Status: Stable')
26 if __name__ ==
"__main__":
27 rospy.init_node(
"tracker_status_info")
29 sub = rospy.Subscriber(
"~input", TrackerStatus, tracker_status_callback)
30 rospy.Timer(rospy.Duration(0.1), publish_text)
def tracker_status_callback(msg)