Ejemplo n.º 1
0
 def __init__(self, name, run_func, humanized_template, setup_func=None):
     Task.__init__(self, name)
     self.driver = get_browser()
     if self.driver is None:
         raise NotImplementedError(E_BROWSERTASK_NO_BROWSERS % self.name)
     self.run_func = run_func
     self.humanized_template = humanized_template
     self.setup_func = setup_func
     self.result = None
Ejemplo n.º 2
0
 def __init__(self, name, run_func, humanized_template, setup_func = None):
     Task.__init__(self, name)
     self.driver = get_browser()
     if self.driver is None:
         raise NotImplementedError(E_BROWSERTASK_NO_BROWSERS % self.name)
     self.run_func = run_func
     self.humanized_template = humanized_template
     self.setup_func = setup_func
     self.result = None
Ejemplo n.º 3
0
    def __init__(self, init_pose=None, init_velocities=None, init_angle_velocities=None, runtime=5., target_pos=None):
        Task.__init__(self, init_pose=init_pose, init_velocities=init_velocities,
                      init_angle_velocities=init_angle_velocities, runtime=runtime, target_pos=target_pos)

        position = self.sim.pose[0:3]
        self.init_distance =  self._get_distance(position)
Ejemplo n.º 4
0
 def __init__(self, fs, inputs):
     Task.__init__(self, fs)
     self.inputs = inputs
     self._parents = self.create_parents()
     self.path = os.path.join(self.fs, self.name())
Ejemplo n.º 5
0
 def __init__(self, name, run_func, humanized_template, setup_func=None):
     Task.__init__(self, name)
     self.run_func = run_func
     self.humanized_template = humanized_template
     self.setup_func = setup_func
     self.result = None
Ejemplo n.º 6
0
 def __init__(self, fs, inputs, density=512):
     Task.__init__(self, fs)
     self.inputs = inputs
     self.inputs = (*inputs, density)
     self._parents = self.create_parents()
     self.path = os.path.join(self.fs, self.name() + ".npy")