コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: MarchingRobot.py プロジェクト: dtbinh/marabunta
 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
コード例 #4
0
ファイル: labyrinth.py プロジェクト: dtbinh/marabunta
 def __init__(self, setting):
     body = MockBody(setting.get("position"), setting.get("heading"))
     network = MockNetwork(setting.get("ID"))
     BaseRobot.__init__(self, body, network)
     return
コード例 #5
0
ファイル: labyrinth.py プロジェクト: david-mateo/marabunta
 def __init__(self, setting):
     body = MockBody(setting.get("position") ,setting.get("heading"))
     network = MockNetwork(setting.get("ID"))
     BaseRobot.__init__(self,body, network)
     return