st_sleep.py
Go to the documentation of this file.
00001 import roslib; roslib.load_manifest('iri_common_smach')
00002 import smach
00003 import smach_ros
00004 import time
00005 
00006 class WaitSeconds(smach.State):
00007     def __init__(self, seconds):
00008         smach.State.__init__(self, outcomes=['finish'])
00009         self.seconds = seconds
00010 
00011     def execute(self, userdata):
00012         time.sleep(self.seconds)
00013         return 'finish'


iri_common_smach
Author(s): Jose Luis Rivero
autogenerated on Fri Dec 6 2013 21:05:19