Select Git revision
demo_final.Rmd
-
Bartke Simon authoredBartke Simon authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
watchdog.py 370 B
#!/usr/bin/env python
import rospy
from monitoring.msg import Metric
class Watchdog:
def __init__(self):
self.state = 0
self.observing = {}
rospy.init_node("watchdog")
rospy.Subscriber("metric", Metric, callback)
def callback(self, monitoring):
if monitoring.origin in self.observing:
self.observing[metric]