l.leftEye(0, 0, 1) if Robot.vNumBalls() > 0: l.rightEye(0, 1, 0) elif Helpers.foundBall(): l.rightEye(1, 1, 0) else: l.rightEye(1, 0, 0) from math import radians b.actionType(ActionCommand.Body.STAND) skillInstance.execute(b, h, l) Robot.setAction(h, b, l) # print (b, h, l) except KeyboardInterrupt: print "###########################" print "## SIGINT RECEIVED ##" print "## BY PYTHON ##" print "## ATTEMPTING SHUTDOWN ##" print "###########################" Robot.attemptShutdown() print "What is the air speed velocity of an unladen swallow?" Robot.setCallback(decideNextAction) if Robot.gcTeam()["teamColour"] == GameController.BLUE: colour = "blue" else: colour = "red" Robot.say("Player %d, team %d " % (Robot.player(), Robot.gcTeam()["teamNumber"]) + colour)