EasyManua.ls Logo

Evolution Robotics ER1 - Commands; Examples; Command Quick Reference

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...
ER1 User Guide 10-5
Commands
Commands
Here's a description of the commands that are currently implemented. In general,
commands and their parameters are not case sensitive, though object names are case
sensitive.
Commands to the robot are always of the form:
<command><Enter>
Every command is acknowledged with either an:
OK<Enter>
or, if something goes wrong:
Error: <error message><Enter>
Examples
Here are some examples of API commands:
move 6 i
play phrase "I am moving 6 inches forward"
move -20 c
play phrase "I am moving 20 centimeters backwards"
move 90 d
play phrase "I am moving 90 degrees to the left"
move -180 d
play phrase "I am moving 180 degrees to the right"
play phrase "I will now detect sound levels"
sense sound level on
events
set voice "Microsoft Mary"
play phrase "I am Microsoft Mary"
set voice "Microsoft Mike"
play phrase "I am Microsoft Mike"
set voice "Microsoft Sam"
play phrase "I am Microsoft Sam"
set v 10
move 2 f
play phrase "I am moving at 10 centimeters per second"
set v 50
move 3 f
play phrase "I am moving at 50 centimeters per second"
set w 10
move 270 d
play phrase "I am turning at 10 degrees per second"
set w 50
move -270 d
play phrase "I am turning at 50 degrees per second"
Command Quick Reference
Here’s a list of the commands. See later in the chapter for descriptions, examples, etc.:
move <distance> <units>
move rotate toward object <
object name>
move rotate toward color <
r> <g> <b>
move drive toward object <
object name> {stop <distance> <units>}
move drive toward color <
r> <g> <b> {stop <percentage> {%}}
play file <
file_name>

Table of Contents