>xabsl 2
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> kicklogger-align
>>>
localize
>>>
turn-for-ball
>>>
turn-right-to-ball
>>>
turn-left-to-ball
>>>
wait-for-start
Option kicklogger-align
State Machine
This browser can't display the SVG file
svg/option_kicklogger-align.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State localize
If that state is active,
>
The basic behavior
stand
is executed.
>
These output symbols are set:
head-control-mode
=
head-control-mode.search-for-landmarks
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-align_state_localize.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-pose.validity
> 0.5
)
// Localized well
{
transition-to-state(
wait-for-start
);
}
else
{
transition-to-state(
localize
);
}
State turn-for-ball
If that state is active,
>
The option
turn-for-ball
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-align_state_turn-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.time-since-last-seen
< 250
)
// Ball was seen
{
transition-to-state(
wait-for-start
);
}
else
{
transition-to-state(
turn-for-ball
);
}
State turn-right-to-ball
If that state is active,
>
The basic behavior
walk
is executed. Parameters:
walk.speed-x
=
0 ;
walk.speed-y
=
0 ;
walk.rotation-speed
=
-40 ;
>
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-align_state_turn-right-to-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.seen.angle
> 7
)
// Ball is left
{
transition-to-state(
turn-left-to-ball
);
}
else if
(
ball.seen.angle
< -7
)
// Ball is left
{
transition-to-state(
turn-right-to-ball
);
}
else
{
transition-to-state(
wait-for-start
);
}
State turn-left-to-ball
If that state is active,
>
The basic behavior
walk
is executed. Parameters:
walk.speed-x
=
0 ;
walk.speed-y
=
0 ;
walk.rotation-speed
=
40 ;
>
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-align_state_turn-left-to-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.seen.angle
> 7
)
// Ball is left
{
transition-to-state(
turn-left-to-ball
);
}
else if
(
ball.seen.angle
< -7
)
// Ball is left
{
transition-to-state(
turn-right-to-ball
);
}
else
{
transition-to-state(
wait-for-start
);
}
State wait-for-start
This state is a target state.
If that state is active,
>
The basic behavior
stand
is executed.
>
These output symbols are set:
head-control-mode
=
head-control-mode.search-auto
leds.top-red
=
top.left
sound-request
=
sound-request.ring
The decision tree:
This browser can't display the SVG file
svg/option_kicklogger-align_state_wait-for-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
(
ball.seen.angle
> 7
)
// Ball is left
{
transition-to-state(
turn-left-to-ball
);
}
else if
(
ball.seen.angle
< -7
)
// Ball is left
{
transition-to-state(
turn-right-to-ball
);
}
else
{
transition-to-state(
wait-for-start
);
}