>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> ball_lost_tester
>>>
landmarks
>>>
ball
Option ball_lost_tester
Test for examine the "lost-ball" problem
State Machine
This browser can't display the SVG file
svg/option_ball_lost_tester.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State landmarks
If that state is active,
>
This enumerated output symbol is set:
motion.type
=
motion.type.stand
>
The option
search_for_landmarks
is executed.
>
This enumerated output symbol is set:
leds.back_middle_orange
=
leds.blink.oooo
The decision tree:
This browser can't display the SVG file
svg/option_ball_lost_tester_state_landmarks.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.distance
()
< 500
)
{
goto
ball
;
}
else
{
stay;
}
State ball
If that state is active,
>
This enumerated output symbol is set:
motion.type
=
motion.type.stand
>
The option
search_for_ball
is executed.
>
This enumerated output symbol is set:
leds.back_middle_orange
=
leds.blink.llll
The decision tree:
This browser can't display the SVG file
svg/option_ball_lost_tester_state_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
(
switch.head_button_pressed
()
)
{
goto
landmarks
;
}
else
{
stay;
}