Drive an iRobot Create
Open a connection to an iRobot Create serial device.
Out[1]= | |
Define a set of iRobot commands.
Send a "start" command followed by a "full mode on" command. This readies the robot for responding to drive commands.
Send the robot a sequence of commands to turn counterclockwise through 90°, drive for five seconds, reverse itself, drive for five seconds, and finally stop.