Using the robot library to programmatically control your robot