コード例 #1
0
    def __init__(self, robot, entity, area, waittime=2.0):
        """ Constructor
        :param robot: robot object
        :param entity: EdEntityDesignator with the area to look at
        :param area: string with the area to look at
        :param waittime: (optional) waittime (in seconds) between giving a head target and returning
        :return:
        """
        ds.check_type(entity, EntityInfo)

        State.__init__(self, locals(), outcomes=['succeeded', 'failed'])
コード例 #2
0
    def __init__(self, robot, entity, area, waittime=2.0):
        """ Constructor
        :param robot: robot object
        :param entity: EdEntityDesignator with the area to look at
        :param area: string with the area to look at
        :param waittime: (optional) waittime (in seconds) between giving a head target and returning
        :return:
        """
        ds.check_type(entity, EntityInfo)

        State.__init__(self, locals(), outcomes=['succeeded', 'failed'])
コード例 #3
0
    def __init__(self, robot, entity, keep_following=False, waittime=0.0):
        ds.check_type(entity, EntityInfo)

        State.__init__(self, locals(), outcomes=['succeeded', 'failed'])
コード例 #4
0
 def __init__(self, robot):
     State.__init__(self, locals(), outcomes=["done"])
コード例 #5
0
 def __init__(self, robot, initial_pose, use_entry_points = False):
     State.__init__(self, locals(), outcomes=["no_goal" , "found", "not_found", "all_unreachable"])
コード例 #6
0
 def __init__(self, robot, timeout=None):
     State.__init__(self, locals(), outcomes=["open", "closed"])
     self.distances = [] #TODO Loy: Keeping all of these is quite ugly. Would a ring buffer or collections.deque suffice?
     self.door_open = Event()
コード例 #7
0
 def __init__(self, robot):
     State.__init__(self, locals(), outcomes=["done"])
コード例 #8
0
 def __init__(self, robot, initial_pose, use_entry_points = False):
     State.__init__(self, locals(), outcomes=["no_goal" , "found", "not_found", "all_unreachable"])
コード例 #9
0
 def __init__(self, robot, timeout=None):
     State.__init__(self, locals(), outcomes=["open", "closed"])
     self.distances = [] #TODO Loy: Keeping all of these is quite ugly. Would a ring buffer or collections.deque suffice?
     self.door_open = Event()
コード例 #10
0
    def __init__(self, robot, entity, keep_following=False, waittime=0.0):
        ds.check_type(entity, EntityInfo)

        State.__init__(self, locals(), outcomes=['succeeded', 'failed'])