Chapter 10 Application Programmer’s Interface
10-10 ER1 User Guide
Example
OK 3.5 4.6 90.1
The first value is the X position (in centimeters), the second is the Y position (in
centimeters), and the third is the angle (in degrees).
Stop Command
The stop command stops any robot motion or sounds which are in progress.
Format:
stop
Sense Command
The sense command lets you turn on and off the robot's sensors.
The format of the command is:
sense <sensor type> {on}
sense <
sensor type> off
Parameters:
<sensor type> is one of:
objects
sound level
speech
When you turn a sensor on, that allows messages from that sensor to appear when the
events command is issued.
Note: Quotes should not be used around the sensor name since the name is a part of the
command, not a parameter.
Examples:
sense objects
sense objects off
sense sound level on
sense speech off
Clear Command
Format:
clear
The clear command throws away all events which have not yet been sent to the user.