How to use the marabunta.MockNetwork 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 / 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 / examples / spreading / spreading.py View on Github external
def new_robot(s, log):
    body = MockBody(s.get("pos"), s.get("heading") )
    network = MockNetwork(log,s.get("ID"))
    bot = PerimeterDefenseRobot( body, network, 0.02)
    bot.turn_on()
    return bot