>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> pass
>>>
get_behind_ball
>>>
kick
Option pass
Passes the ball to a teammate.
State Machine
This browser can't display the SVG file
svg/option_pass.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State get_behind_ball
If that state is active,
>
The basic behavior
get_behind_ball
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_pass_state_get_behind_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:
/** at ball */
if
(
(
ball.local.direction
()
== next_action.NW
)
||
(
ball.local.direction
()
== next_action.W
)
||
(
ball.local.direction
()
== next_action.SW
)
)
{
goto
kick
;
}
else
{
stay;
}
State kick
If that state is active,
>
This enumerated output symbol is set:
next_action
=
next_action.kick
The decision tree:
This browser can't display the SVG file
svg/option_pass_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:
/** still behind ball */
if
(
(
ball.local.direction
()
== next_action.N
)
||
(
ball.local.direction
()
== next_action.NW
)
||
(
ball.local.direction
()
== next_action.W
)
||
(
ball.local.direction
()
== next_action.SW
)
||
(
ball.local.direction
()
== next_action.S
)
)
{
stay;
}
else
{
goto
get_behind_ball
;
}