How to use the marabunta.BaseRobot.__init__ function in marabunta

To help you get started, we’ve selected a few marabunta examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github david-mateo / marabunta / marabunta / models / PerimeterDefenseRobot.py View on Github external
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
github david-mateo / marabunta / examples / labyrinth / labyrinth.py View on Github external
def __init__(self, setting):
        body = MockBody(setting.get("position") ,setting.get("heading"))
        network = MockNetwork(setting.get("ID"))
        BaseRobot.__init__(self,body, network)
        return
github david-mateo / marabunta / marabunta / models / MarchingRobot.py View on Github external
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