Option lnw_playing_striker

Goes to the ball and stops in front of it

State Machine

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



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

State ball_reached

If that state is active,
 >  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.stand
 
The decision tree:
  This browser can't display the SVG file svg/option_lnw_playing_striker_state_ball_reached.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.was_seen() )
&& 
(ball.distance() > 400)
)
|| 
(
(
!(ball.was_seen() )
)
&& 
(ball.time_since_last_seen() > 100)
)
)
{
  
goto go_to_ball;
}
else
{
  
stay;
}

State go_to_ball

If that state is active,
 >  The option go_to_ball is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_lnw_playing_striker_state_go_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.was_seen() )
&& 
(ball.distance() < 300)
)
{
  
goto ball_reached;
}
else
{
  
/** */
if (
(
!(ball.was_seen() )
)
&& 
(ball.time_since_last_seen() > 100)
)
{
  
goto search_ball;
}
else
{
  
stay;
}
}

State search_ball

If that state is active,
 >  The option search_ball is executed.
 
The decision tree:
  This browser can't display the SVG file svg/option_lnw_playing_striker_state_search_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.was_seen() )
{
  
goto go_to_ball;
}
else
{
  
stay;
}