def test_example_scheduler_(self): """ Initialize ROCON scheduler node for example requester. """ rospy.init_node("test_example_scheduler") self.rqr = Requester(self.feedback) self.actions = collections.deque([self.step1, self.step2, self.step3]) self.timer = rospy.Timer(rospy.Duration(2.0), self.periodic_update) rospy.spin()
def test_example_requester_(self): """ Initialize ROCON scheduler node for example requester. """ rospy.init_node("test_example_scheduler") self.rqr = Requester(self.feedback, frequency=1.0) self.next_step = self.step1 # first step of test sequence self.timer = rospy.Timer(rospy.Duration(2.0), self.periodic_update) rospy.spin()