>xabsl
Behavior Documentation
>
Index
>Agents
>Symbols
>Basic Behaviors
>Options
>> random_special_action
>>>
stand
>>>
action1
>>>
action2
>>>
action3
Option random_special_action
zufaellige special actions ausfuehren (fuer ein seminar)
State Machine
This browser can't display the SVG file
svg/option_random_special_action.svg
.
The
Adobe SVG Viewer 3.0
can be downloaded from
http://www.adobe.com/svg/viewer/install/main.html
State stand
If that state is active,
>
This enumerated output symbol is set:
head.control_mode
=
head.control_mode.look_straight_ahead
>
This enumerated output symbol is set:
motion.type
=
motion.type.stand
The decision tree:
This browser can't display the SVG file
svg/option_random_special_action_state_stand.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
(
state_time
> 100
)
{
/** */
if
(
random
()
< 0.3
)
{
goto
action1
;
}
else
{
/** */
if
(
(
random
()
>= 0.3
)
&&
(
random
()
< 0.6
)
)
{
goto
action2
;
}
else
{
goto
action3
;
}
}
}
else
{
stay;
}
State action1
If that state is active,
>
The option
special_action
is executed. Parameters:
special_action.id
=
motion.special_action.block ;
special_action.mirror
=
false ;
The decision tree:
This browser can't display the SVG file
svg/option_random_special_action_state_action1.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
(
state_time
> 3000
)
{
goto
stand
;
}
else
{
stay;
}
State action2
If that state is active,
>
The option
special_action
is executed. Parameters:
special_action.id
=
motion.special_action.block_left ;
special_action.mirror
=
false ;
The decision tree:
This browser can't display the SVG file
svg/option_random_special_action_state_action2.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
(
action_done
)
{
goto
stand
;
}
else
{
stay;
}
State action3
If that state is active,
>
The option
special_action
is executed. Parameters:
special_action.id
=
motion.special_action.block_left ;
special_action.mirror
=
true ;
The decision tree:
This browser can't display the SVG file
svg/option_random_special_action_state_action3.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
(
action_done
)
{
goto
stand
;
}
else
{
stay;
}