4 from flexbe_core
import EventState
5 from rospy.exceptions
import ROSInterruptException
15 Implements a state that can be used to wait on timed process. 17 -- wait_time float Amount of time to wait in seconds. 19 <= done Indicates that the wait time has elapsed. 24 super(WaitState, self).
__init__(outcomes=[
'done'])
29 '''Execute this state''' 32 if (elapsed.to_sec() > self.
_wait):
37 '''Upon entering the state, save the current time and start waiting.''' 43 except ROSInterruptException:
44 rospy.logwarn(
'Skipped sleep.')
def on_enter(self, userdata)
def execute(self, userdata)
def __init__(self, wait_time)