19 sub_out = rospy.Subscriber(
"/relay_stealth/output", String,
22 if sub_out.get_num_connections() == 0:
24 self.assertTrue(sub_out.get_num_connections() > 0)
29 sub_monitor = rospy.Subscriber(
"/original_topic/relay", String,
36 sub_monitor.unregister()
42 if __name__ ==
'__main__':
44 rospy.init_node(
"test_relay_stealth")
45 rostest.rosrun(
"topic_tools",
"test_relay_stealth", TestRelayStealth)
def monitor_callback(self, msg)
def test_stealth_relay(self)
def out_callback(self, msg)