Option go_to_point_forward

Go to a specific position on the field

Parameters of that option:
ParameterTypeMeasureRangeDescription
go_to_point_forward.xdecimalmm-3000..3000x position of the point to walk to on the field
go_to_point_forward.ydecimalmm-2000..2000y position of the point to walk to on the field
go_to_point_forward.speeddecimalmm/sspeed, default to very fast speed

State Machine

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



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

State walk

If that state is active,
 >  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  = 
( abs( selfloc.angle_to( @go_to_point_forward.x , @go_to_point_forward.y ) ) > 45 ? 0 : ( @go_to_point_forward.speed == 0 ? 500 : @go_to_point_forward.speed ) )
 >  This decimal output symbol is set:
    motion.walk_speed.y  = 
0
 >  This decimal output symbol is set:
    motion.walk_speed.rot  = 
(2 * selfloc.angle_to( @go_to_point_forward.x , @go_to_point_forward.y ) )
 >  This decimal output symbol is set:
    strategy.destination.x  = 
@go_to_point_forward.x
 >  This decimal output symbol is set:
    strategy.destination.y  = 
@go_to_point_forward.y
 
The decision tree:
  This browser can't display the SVG file svg/option_go_to_point_forward_state_walk.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 ( selfloc.distance_to( @go_to_point_forward.x , @go_to_point_forward.y ) < 100)
{
  
goto stop;
}
else
{
  
stay;
}

State stop

This state is a target state.



If that state is active,
 >  This enumerated output symbol is set:
    motion.type  = 
motion.type.stand
 
The decision tree:
  This browser can't display the SVG file svg/option_go_to_point_forward_state_stop.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 ( selfloc.distance_to( @go_to_point_forward.x , @go_to_point_forward.y ) > 200)
{
  
goto walk;
}
else
{
  
stay;
}