Option passing_challenge

Behavior for Pass Playing Challenge 2007

State Machine

This browser can't display the SVG file svg/option_passing_challenge.svg.



The Adobe SVG Viewer 3.0 can be downloaded from http://www.adobe.com/svg/viewer/install/main.html

State init

If that state is active,
 >  This enumerated output symbol is set:
    leds.face1  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face2  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face3  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face4  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face5  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face6  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face7  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face8  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face9  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face10  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face11  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face12  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face13  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.face14  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_front_blue  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_front_white  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_middle_orange  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_middle_white  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_rear_red  = 
leds.blink.oooo
 >  This enumerated output symbol is set:
    leds.back_rear_white  = 
leds.blink.oooo
 >  The option display_player_number is executed.
 >  The option display_team_color is executed.
 >  This enumerated output symbol is set:
    head.control_mode  = 
head.control_mode.look_straight_ahead
 >  This decimal output symbol is set:
    head.mouth  = 
0
 >  This enumerated output symbol is set:
    motion.type  = 
motion.type.walk
 >  This enumerated output symbol is set:
    motion.walk_type  = 
motion.walk_type.normal
 >  This decimal output symbol is set:
    motion.walk_speed.x  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.y  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.rot  = 
0
 
The decision tree:
  This browser can't display the SVG file svg/option_passing_challenge_state_init.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 ( game.state() == game.state._initial)
{
  
goto init;
}
else
{
  
/** */
if ( game.state() == game.state.playing)
{
  
/** */
if ( game.penalty() == game.penalty.none)
{
  
goto playing;
}
else
{
  
goto penalized;
}
}
else
{
  
/** */
if ( game.state() == game.state.ready)
{
  
goto ready_state;
}
else
{
  
stay;
}
}
}

State ready_state

If that state is active,
 >  This decimal output symbol is set:
    strategy.estimated_time_to_reach_ball  = 
-1
 >  The option display_player_number is executed.
 >  The option display_team_color is executed.
 >  The option passing_ready is executed.
 >  The option head_control is executed.
 >  The option display_lost_frames is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_passing_challenge_state_ready_state.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 ( game.state() == game.state._initial)
{
  
goto init;
}
else
{
  
/** */
if ( game.state() == game.state.playing)
{
  
/** */
if ( game.penalty() == game.penalty.none)
{
  
goto playing;
}
else
{
  
goto penalized;
}
}
else
{
  
/** */
if (
(game.state() == game.state.set)
|| 
(state_time > 15000)
)
{
  
goto set;
}
else
{
  
stay;
}
}
}

State set

If that state is active,
 >  The option estimate_time_to_reach_ball_for_pass_challenge is executed.
 >  The option head_control is executed.
 >  The option display_player_number is executed.
 >  The option display_team_color is executed.
 >  The option display_lost_frames is executed.
 >  This enumerated output symbol is set:
    head.control_mode  = 
head.control_mode.search_for_ball
 >  This enumerated output symbol is set:
    motion.type  = 
motion.type.walk
 >  This enumerated output symbol is set:
    motion.walk_type  = 
motion.walk_type.normal
 >  This decimal output symbol is set:
    motion.walk_speed.x  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.y  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.rot  = 
0
 
The decision tree:
  This browser can't display the SVG file svg/option_passing_challenge_state_set.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 ( game.state() == game.state._initial)
{
  
goto init;
}
else
{
  
/** */
if ( game.state() == game.state.playing)
{
  
/** */
if ( game.penalty() == game.penalty.none)
{
  
goto playing;
}
else
{
  
goto penalized;
}
}
else
{
  
stay;
}
}

State playing

If that state is active,
 >  The option pass_player is executed.
 >  The option head_control is executed.
 >  The option handle_fall_down is executed.
 >  The option display_player_number is executed.
 >  The option display_team_color is executed.
 >  The option display_lost_frames is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_passing_challenge_state_playing.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 ( game.state() == game.state._initial)
{
  
goto init;
}
else
{
  
/** */
if ( game.state() == game.state.playing)
{
  
/** */
if ( game.penalty() == game.penalty.none)
{
  
goto playing;
}
else
{
  
goto penalized;
}
}
else
{
  
stay;
}
}

State penalized

If that state is active,
 >  This enumerated output symbol is set:
    strategy.role  = 
strategy.role.defensive_supporter
 >  This enumerated output symbol is set:
    head.control_mode  = 
head.control_mode.look_down
 >  This enumerated output symbol is set:
    motion.type  = 
motion.type.walk
 >  This enumerated output symbol is set:
    motion.walk_type  = 
motion.walk_type.normal
 >  This decimal output symbol is set:
    motion.walk_speed.x  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.y  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.rot  = 
0
 
The decision tree:
  This browser can't display the SVG file svg/option_passing_challenge_state_penalized.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 ( game.state() == game.state._initial)
{
  
goto init;
}
else
{
  
/** */
if ( game.state() == game.state.playing)
{
  
/** */
if ( game.penalty() == game.penalty.none)
{
  
goto playing;
}
else
{
  
goto penalized;
}
}
else
{
  
stay;
}
}