ER1 User Guide 10-7
Move Command
Examples:
move 90 degrees
move 50 feet
move -5.3 cm
Move Rotate Toward Object
Format:
move rotate toward object <object name>
Parameter:
<object name> is the name of an object in the library. It is case-sensitive. If it
contains spaces, it must be surrounded by single or double quotes.
Example:
move rotate toward "Spot Page 1"
Move Rotate Toward Color
Format:
move rotate toward color <r> <g> <b>
Parameters:
<r> is the red color value (0 to 255)
<g> is the green color value (0 to 255)
<b> is the blue color value (0 to 255)
Example:
move rotate toward color 255 0 0
which rotates the robot towards the color red.
Important Note: Are you not sure how to determine the RGB values of an object? Try
downloading and installing GIMP (Gnu Image Manipulation Program) from
www.gimp.org
. It is a free program. Using the ER1 camera, take a snapshot of the object
in question. Open the file in GIMP. Use the dropper tool to select the color you want to
analyze. The RGB values will be displayed.
You can also use Microsoft
®
Paint to analyze the colors. Again capture the image using the
ER1. Open the file in Paint. Select the desired color in the image using the dropper tool.
Choose Colors>Edit Colors on the toolbar menu and click on the Define Custom Colors
button. The RGB values will be displayed.