>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> turn_for_landmarks
>>>
stand
>>>
turn
Option turn_for_landmarks
Turn around and look for landmarks
State Machine
This browser can't display the SVG file
svg/option_turn_for_landmarks.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State stand
If that state is active,
>
This enumerated output symbol is set:
head.control_mode
=
head.control_mode.search_for_landmarks
>
This enumerated output symbol is set:
motion.type
=
motion.type.stand
The decision tree:
This browser can't display the SVG file
svg/option_turn_for_landmarks_state_stand.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** */
if
(
state_time
> 3000
)
{
goto
turn
;
}
else
{
stay;
}
State turn
If that state is active,
>
This enumerated output symbol is set:
head.control_mode
=
head.control_mode.search_for_landmarks
>
This enumerated output symbol is set:
motion.type
=
motion.type.walk
>
This enumerated output symbol is set:
motion.walk_type
=
motion.walk_type.normal
>
This decimal output symbol is set:
motion.walk_speed.x
=
0
>
This decimal output symbol is set:
motion.walk_speed.y
=
0
>
This decimal output symbol is set:
motion.walk_speed.rot
=
200
The decision tree:
This browser can't display the SVG file
svg/option_turn_for_landmarks_state_turn.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
Pseudo code of the decision tree:
/** */
if
(
state_time
> 1000
)
{
goto
stand
;
}
else
{
stay;
}