35 import roslib; roslib.load_manifest(PKG)
37 from bondpy
import bondpy
43 atexit.register(rospy.signal_shutdown,
'exit')
45 TOPIC =
"test_bond_topic" 49 return "test_" + str(uuid.uuid4())
56 a = bondpy.Bond(TOPIC, id)
57 b = bondpy.Bond(TOPIC, id)
59 a.set_formed_callback(a.break_bond)
64 self.assertTrue(a.wait_until_formed(rospy.Duration(5.0)))
65 self.assertTrue(b.wait_until_broken(rospy.Duration(3.0)))
70 rospy.init_node(
'test_callbacks_python', anonymous=
True, disable_signals=
True)
71 rostest.run(PKG,
'test_callbacks_python', CallbackTests, sys.argv)
74 if __name__ ==
'__main__':
def test_die_in_life_callback(self)