| BEHAVIOR | Index |
Overview:
This tag identifies a primitive along with its specific properties that will be added to the behavior queue during the execution of the script. Some behaviors may have many properties that can be set. Other behaviors may have none.
| Contents | Description |
| PRIMITIVE | Identifies the primitive. |
| NAME | Unique name for the primitive. |
| PROPERTY | A property for the primitive. |
| Gray tags are optional. | |
Example:
<BEHAVIOR>
<PRIMITIVE>
"global"
</PRIMITIVE>
<PROPERTY>
<NAME>
"user-led"
</NAME>
<VALUE>
1
</VALUE>
</PROPERTY>
</BEHAVIOR>
This creates a script with a single global primitive that turns on the robot's yellow LED by writing a 1 to the user-led property.
Related: