Chapter 3 Behavior Programming Overview
3-2 ER1 User Guide
An ER1 behavior is a rule that describes what the robot should do when a certain
condition is met. (For the developers among you, in programming terms, an if-then
statement is used to encode the condition-action rule of a behavior.)
An example of a behavior is the following condition-action pair:
If hear a sound
Then shoot video and email it to the specified address
One or more conditions can be specified in the If column, and one or more actions can be
specified for the Then column. Whenever any one of the If conditions is satisfied, the
behavior is said to be triggered, and all its actions specified in the Then column are
executed.
After you click Run, all of the If conditions of all of the behaviors (1-96) you
programmed are continually monitored by the software until one of the conditions is met.
This triggers the Then portion of that behavior and executes all the actions. Only one
behavior can execute at a time. Once a behavior is done executing, then all behaviors are
once again monitored and are eligible for triggering.
Each individual behavior is simple, but when put together, multiple behaviors can
perform complex and interesting tasks in response to a variety of conditions. Behaviors
can be chained together in a sequence, so that each behavior triggers the next behavior,
forming a sequential program of up to 96 behaviors.
The set of all behaviors and their configuration settings is called a task, and the task can
be saved to a
.rbt file for later use.
Behavior Tabs
Each behavior has a tab (located at the top of the screen) associated with it. Clicking on
the tab selects the corresponding behavior for editing. To use the tabs:
1. Click on the left or right arrows at the top right corner of the screen to move to the
subsequent or preceding page of eight tabs.
2. Double-click on a tab to change its name.
Behavior Configurations
Each behavior also has a set of individual configuration settings accessible by clicking on
the Behavior Settings button at the top right of the screen. See āBehavior Settingsā for a
complete description of these settings.
Behavior Files
Behaviors and all their associated configuration settings can be saved to a file with the
.rbt extension for later retrieval and reuse. To save a task to a file:
1. Click on the Save button at the top left of the screen.
2. A Save File dialog will pop up and a name can be specified for the behavior file.
3. The software will automatically add the
.rbt extension.
4. The default saved location is:
C:\Program Files\ER1\behaviors.