#FORMAT python # A simple brain with a setup method from pyrobot.brain import Brain # Define the robot's brain class class SimpleBrain2(Brain): # The setup method can be used to do initializations def setup(self): self.moveAmount = 0.3 # The step method is the main behavior loop def step(self): self.robot.translate(self.moveAmount) # go forward # Create a brain for the robot def INIT(engine): return SimpleBrain2('SimpleBrain2', engine)