Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
def __init__(self, setting):
body = MockBody(setting.get("position") ,setting.get("heading"))
network = MockNetwork(setting.get("ID"))
BaseRobot.__init__(self,body, network)
return