Odometry

The odometry Uobject is a special device that grabs the postion of the iRobot Create in its environnement.

In the odometry variable are stored :

You can use the odometry.move(velocity, radius) function to control your robot. It is a direct access on command 137 in iRobot protocol.

 odometry.move(40, -200); 

This example will make your robot move at a global velocity of 40 mm/s and turn on the right following the arc of a circle of a radius of 200;