#FORMAT python from pyrobot.brain import Brain class Sensor(Brain): # print the min and max value of the front sensors while moving def step(self): self.move(0.5,0) self.front = [s.distance() for s in self.robot.range["front"]] print "min front: ", min(self.front), "max front: ", max(self.front) def INIT(engine): return Sensor('Sensor', engine)