>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> playing-offensive-supporter
>>>
position-near-ball
>>>
get-to-far-ball
>>>
ball-in-own-half
>>>
position-near-opponent-goal
Option playing-offensive-supporter
The offensive supporter playing
State Machine
This browser can't display the SVG file
svg/option_playing-offensive-supporter.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State position-near-ball
If that state is active,
>
The option
position-supporter-near-ball
is executed. Parameters:
position-supporter-near-ball.x
=
-150 ;
position-supporter-near-ball.y
=
700 ;
>
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_playing-offensive-supporter_state_position-near-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
(
(
the-striker-is-playing-near-the-opponent-goal
)
||
(
ball.seen.x
> 1500
)
)
// striker plays near the opponent goal
{
transition-to-state(
position-near-opponent-goal
);
}
else
{
if
(
ball.known.x
< -200
)
// ball in own half
{
transition-to-state(
ball-in-own-half
);
}
else if
(
ball.known.distance
< 1000
)
// near-ball
{
transition-to-state(
position-near-ball
);
}
else
{
transition-to-state(
get-to-far-ball
);
}
}
State get-to-far-ball
If that state is active,
>
The option
get-to-ball-and-avoid-obstacles
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_playing-offensive-supporter_state_get-to-far-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
(
(
the-striker-is-playing-near-the-opponent-goal
)
||
(
ball.seen.x
> 1500
)
)
// striker plays near the opponent goal
{
transition-to-state(
position-near-opponent-goal
);
}
else
{
if
(
ball.known.x
< -200
)
// ball in own half
{
transition-to-state(
ball-in-own-half
);
}
else if
(
ball.known.distance
< 800
)
// near-ball
{
transition-to-state(
position-near-ball
);
}
else
{
transition-to-state(
get-to-far-ball
);
}
}
State ball-in-own-half
If that state is active,
>
The option
position-supporter-on-line
is executed. Parameters:
position-supporter-on-line.x
=
250 ;
>
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_playing-offensive-supporter_state_ball-in-own-half.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
(
(
the-striker-is-playing-near-the-opponent-goal
)
||
(
ball.seen.x
> 1500
)
)
// striker plays near the opponent goal
{
transition-to-state(
position-near-opponent-goal
);
}
else
{
if
(
ball.known.x
> -200
)
// ball in oponent half
{
transition-to-state(
get-to-far-ball
);
}
else
{
transition-to-state(
ball-in-own-half
);
}
}
State position-near-opponent-goal
If that state is active,
>
The option
position-offensive-supporter-near-opponent-goal
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_playing-offensive-supporter_state_position-near-opponent-goal.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
(
(
the-striker-is-playing-near-the-opponent-goal
)
||
(
ball.seen.x
> 1500
)
)
// striker plays near the opponent goal
{
transition-to-state(
position-near-opponent-goal
);
}
else
{
if
(
the-striker-is-not-playing-near-the-opponent-goal
)
// striker plays not near the opponent goal
{
transition-to-state(
position-near-ball
);
}
else
{
transition-to-state(
position-near-opponent-goal
);
}
}