CS325 Lab 6 - Introduction to the iRobot Create
Objectives:
- Be able to control the movement of Otto
- The instructions for operating Otto are given
here. You will want to boot Otto and
run the Player server with the standard roomba driver.
- Complete and test the lab6 code so that you have functions which turn
and move the robot a specified amount (you may determine the units).
You will need to use the SetSpeed method of the Position2dProxy class to
move the robot. (class
description) In order to test the amount of movement that has been
done you will need to use the GetYaw, GetXPos, and GetYPos methods.
Before getting those values, each time you will need to do a blocking read:
robot.Read();
- To compile your code:
g++ -o lab6 `pkg-config --cflags playerc++` lab6.cc `pkg-config --libs
playerc++`
or you may edit and use the shell script build to
make your life much easier.
To run your code:
./lab6
Thoroughly test your functions. If you run into trouble, simply pick
up the robot, which will terminate execution. You will then need to
restart the player server.
- Demo your program for me and email your code to jill.zimmerman@goucher.edu