Skip to content
Snippets Groups Projects
Commit fe96cf7f authored by bav6096's avatar bav6096
Browse files

testing

parent 1ec5a206
Branches
No related tags found
No related merge requests found
......@@ -6,9 +6,9 @@ from monitoring.monitor import Monitor
def monitor_test_1():
rospy.init_node("monitor_test_1")
monitor = Monitor(1, 1.0)
monitor = Monitor(1, 0.2)
rate = rospy.Rate(10)
rate = rospy.Rate(0.2)
while not rospy.is_shutdown():
monitor.update_metric("test_domain_1", "test_label_1", 10, "unit", 0.5)
rate.sleep()
......
......@@ -6,9 +6,9 @@ from monitoring.monitor import Monitor
def monitor_test_2():
rospy.init_node("monitor_test_2")
monitor = Monitor(1, 1.0)
monitor = Monitor(1, 0.2)
rate = rospy.Rate(10)
rate = rospy.Rate(1.0)
value = 0
while not rospy.is_shutdown():
monitor.update_metric("test_domain_1", "test_label_2", 10, "unit", value)
......
......@@ -6,9 +6,9 @@ from monitoring.monitor import Monitor
def monitor_test_3():
rospy.init_node("monitor_test_3")
monitor = Monitor(1, 1.0)
monitor = Monitor(1, 0.2)
rate = rospy.Rate(10)
rate = rospy.Rate(0.2)
while not rospy.is_shutdown():
monitor.update_metric("test_domain_2", "test_label_3", 10, "unit", 1.0)
rate.sleep()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment