def __init__(self, body, network, threshold=0.5, w_spread=2.0, w_heading=1.0, w_group=0.2):
     BaseRobot.__init__(self, body, network)
     self.threshold = threshold
     self.S = w_spread
     self.H = w_heading
     self.G = w_group
     return
 def __init__(self, body, network, threshold):
     BaseRobot.__init__(self, body, network)
     self.threshold = threshold
     self.rendezvous_point = None
     self.path = []
     self.known_lights = []
     self.num_lights = 0
     return
Exemple #3
0
 def __init__(self,
              body,
              network,
              threshold=0.5,
              w_spread=2.,
              w_heading=1.,
              w_group=0.2):
     BaseRobot.__init__(self, body, network)
     self.threshold = threshold
     self.S = w_spread
     self.H = w_heading
     self.G = w_group
     return
Exemple #4
0
 def __init__(self, setting):
     body = MockBody(setting.get("position"), setting.get("heading"))
     network = MockNetwork(setting.get("ID"))
     BaseRobot.__init__(self, body, network)
     return
Exemple #5
0
 def __init__(self, setting):
     body = MockBody(setting.get("position") ,setting.get("heading"))
     network = MockNetwork(setting.get("ID"))
     BaseRobot.__init__(self,body, network)
     return