EasyManua.ls Logo

Evolution Robotics ER1 - Move Drive Toward Object; Move Drive Toward Color; Objects Command; Objects

Default Icon
170 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 10 Application Programmer’s Interface
10-8 ER1 User Guide
Move Drive Toward Object
Format:
move drive toward object <object name> {stop <distance> <units>}
Parameters:
object name specifies the filename of the object to move toward
{} The curly braces indicate the use of the word 'stop'
The stop distance is optional. There is a built-in default of 2 feet.
Examples:
move drive toward object Coke stop 6 in
move drive toward object 'back door'
Move Drive Toward Color
Format:
move drive toward color <r> <g> <b> {stop <percentage> {%}}
This is similar to the rotate toward color command, but you can optionally specify a
percentage value to make the robot stop when that percentage of the screen is filled by the
chosen color.
Examples:
move drive toward color 0 255 0 stop 10 %
move drive toward color 0 255 0 stop 10
move drive toward color 128 128 128
Objects Command
Objects
Format
objects
It returns the list of object in the library in the following format:
OK
<
object name 1>
<
object name 2>
<...>
<
object name N>
<
blank line>
Since each object is listed on a separate line, no quotes are used around the object name.
The last object is followed by a blank line.

Table of Contents