>xabsl 2
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> kicklogger-run
>>>
wait-for-align-and-start
>>>
kick
>>>
save
>>>
checkborder
>>>
retreat
Option kicklogger-run
Walk to ball and kick at random position
State Machine
This browser can't display the SVG file
svg/option_kicklogger-run.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State wait-for-align-and-start
This state is a target state.
If that state is active,
>
The option
kicklogger-align
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-run_state_wait-for-align-and-start.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
(
(
(
robot-state.any-back-button-pressed-short-and-released
)
||
(
game.state
==
game.state.playing
)
)
&&
(
subsequent-option-reached-target-state
)
)
// back pressed
{
transition-to-state(
kick
);
}
else
{
transition-to-state(
wait-for-align-and-start
);
}
State kick
If that state is active,
>
The option
kicklogger-walkandkick
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-run_state_kick.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
(
subsequent-option-reached-target-state
)
// kick is set
{
transition-to-state(
save
);
}
else
{
transition-to-state(
kick
);
}
State save
If that state is active,
>
The basic behavior
stand
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-run_state_save.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
(
kicklogger.save
)
// call successful
{
transition-to-state(
checkborder
);
}
else
{
transition-to-state(
save
);
}
State checkborder
If that state is active,
>
The option
kicklogger-checkborder
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-run_state_checkborder.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
(
subsequent-option-reached-target-state
)
// ball moved out of border
{
transition-to-state(
retreat
);
}
else
{
transition-to-state(
checkborder
);
}
State retreat
If that state is active,
>
The option
kicklogger-retreat
is executed.
>
These output symbols are set:
head-control-mode
=
head-control-mode.search-auto
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-run_state_retreat.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
(
subsequent-option-reached-target-state
)
// kick is set
{
transition-to-state(
wait-for-align-and-start
);
}
else
{
transition-to-state(
retreat
);
}