Esempio n. 1
0
 def __init__(self, parent, status_callback, skip, abort_callback=None):
     Executor.__init__(self,
                       parent,
                       status_callback,
                       skip,
                       abort_callback=abort_callback)
     self.trigger_watcher = shm.watchers.watcher()
     self.trigger_watcher.watch(shm.cave_settings)
Esempio n. 2
0
 def __init__(self,
              parent,
              status_callback,
              skip,
              abort_callback=None,
              finish_callback=None):
     Executor.__init__(self,
                       parent,
                       status_callback,
                       skip,
                       abort_callback=abort_callback)
     self.finish_callback = finish_callback
Esempio n. 3
0
 def __init__(self, boss_planner = None, world = None):
     agent = self
     Executor.__init__(self)
     self.__boss_planner = boss_planner
     self.post("HelloWorld")
     self.__benefit = 0
     self.__cost = 0
     # args = {"goal_list": self.goal_list,
     #  "plan_dic": plan_dic}
     # args.update(locals())
     args = locals()
     args.pop('self')
     self.set_plan_select_plan("simple_select", goal_list = self.goal_list,plan_dic = plan_dic,**args)
     # TODO : subject, location, direction, information, emotion...
     self.__state_vector = np.zeros(5)
Esempio n. 4
0
 def __init__(self, parent, status_callback, skip, abort_callback=None, finish_callback=None):
     Executor.__init__(self, parent, status_callback, skip, abort_callback=abort_callback)
     self.finish_callback = finish_callback
Esempio n. 5
0
 def __init__(self, parent, status_callback, skip, abort_callback=None):
     Executor.__init__(self, parent, status_callback, skip, abort_callback=abort_callback)
     self.trigger_watcher = shm.watchers.watcher()
     self.trigger_watcher.watch(shm.cave_settings)