>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> search_for_ball
>>>
search_for_ball
>>>
look_at_ball
Option search_for_ball
Scan mode for looking at the ball/searching for the ball
State Machine
This browser can't display the SVG file
svg/option_search_for_ball.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State search_for_ball
If that state is active,
>
The option
head_sweep_scan
is executed. Parameters:
head_sweep_scan.start_left_side
=
ball.angle
()
> 0
;
The decision tree:
This browser can't display the SVG file
svg/option_search_for_ball_state_search_for_ball.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
(
ball.was_seen
()
)
{
goto
look_at_ball
;
}
else
{
stay;
}
State look_at_ball
If that state is active,
>
The option
look_at_ball
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_search_for_ball_state_look_at_ball.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
(
ball.time_since_last_seen
()
> 500
)
{
goto
search_for_ball
;
}
else
{
stay;
}