| PROPERTY | Index |
Overview:
This tag identifies a name-value pair that will be used to assign a value to a named property. Properties may be specific to a primitive such as distances and angles for motion. Properties may also be specific to the robot itself such as the state of the user LED. These global properties must be set by using behaviors with a global primitive.
| Contents | Description |
| NAME | Identifies the property. |
| VALUE | A value for the property. |
Example:
<BEHAVIOR>
<PRIMITIVE> "global" </PRIMITIVE>
<PROPERTY>
<NAME> "speed" </NAME>
<VALUE> 0.2 </VALUE>
</PROPERTY>
</BEHAVIOR>
<BEHAVIOR>
<PRIMITIVE> "move" </PRIMITIVE>
<PROPERTY>
<NAME> "distance" </NAME>
<VALUE> 1.5 </VALUE>
</PROPERTY>
</BEHAVIOR>
This creates a script with two behaviors, one using a global primitive and the second using a move primitive. The first behavior sets the speed of the robot to 0.2 distance units per second. The second behavior will move the robot a distance of 1.5 units.
Related: