Controlling the robot in the simulation