>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> lnw_run_role_demo
>>>
wait
>>>
play
Option lnw_run_role_demo
State Machine
This browser can't display the SVG file
svg/option_lnw_run_role_demo.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State wait
If that state is active,
>
This enumerated output symbol is set:
head.control_mode
=
head.control_mode.none
>
This enumerated output symbol is set:
head.motion_type
=
head.motion_type.move_to_point
>
This enumerated output symbol is set:
head.pid_setting
=
head.pid_setting.normal
>
This decimal output symbol is set:
head.speed
=
500
>
This decimal output symbol is set:
head.neck_tilt
=
-70
>
This decimal output symbol is set:
head.head_pan
=
0
>
This decimal output symbol is set:
head.head_tilt
=
0
>
This decimal output symbol is set:
head.mouth
=
0
>
This enumerated output symbol is set:
motion.type
=
motion.type.stand
The decision tree:
This browser can't display the SVG file
svg/option_lnw_run_role_demo_state_wait.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
()
)
&&
(
state_time
> 1000
)
)
{
goto
play
;
}
else
{
stay;
}
State play
If that state is active,
>
The option
lnw_decide_current_role
is executed.
The decision tree:
This browser can't display the SVG file
svg/option_lnw_run_role_demo_state_play.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
()
)
&&
(
state_time
> 1000
)
)
{
goto
wait
;
}
else
{
stay;
}