Option manual-kick-test

Executes a selected kick by pressing a button on the robot

Parameters of that option:
ParameterMeasureRangeDescription
manual-kick-test.actionint0..The action id of the kick that was selected
manual-kick-test.walk-speedmm/s-300..300The speed of the robot while approaching the ball

State Machine

This browser can't display the SVG file svg/option_manual-kick-test.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,
 >  The basic behavior stand is executed.
 
 >  These output symbols are set:
 
    sound-request  =  sound-request.bark1
 
The decision tree:
  This browser can't display the SVG file svg/option_manual-kick-test_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 (robot-state.middle-back-button-pressed-short)   // head pressed
{
  
if (::manual-kick-test.walk-speed != 0)   // walk speed is set
{
  
transition-to-state(walk);
}
else
{
  
transition-to-state(kick);
}
}
else
{
  
transition-to-state(stand);
}

State walk

If that state is active,
 >  The basic behavior walk is executed. Parameters:
 
    walk.speed-x  =  ::manual-kick-test.walk-speed ;
    walk.speed-y  =  0 ;
    walk.rotation-speed  =  0 ;
 
The decision tree:
  This browser can't display the SVG file svg/option_manual-kick-test_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 (time-of-state-execution < 500)   // at least 500ms
{
  
transition-to-state(walk);
}
else if (robot-state.middle-back-button-pressed-short)   // head pressed
{
  
transition-to-state(kick);
}
else
{
  
transition-to-state(walk);
}

State kick

If that state is active,
 >  The option execute-kick is executed. Parameters:
 
    execute-kick.action  =  ::manual-kick-test.action ;
 
The decision tree:
  This browser can't display the SVG file svg/option_manual-kick-test_state_kick.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 (subsequent-option-reached-target-state)   // kick finished
{
  
transition-to-state(wait);
}
else
{
  
transition-to-state(kick);
}

State wait

If that state is active,
 >  The basic behavior stand is executed.
 
 >  These output symbols are set:
 
    sound-request  =  sound-request.none
 
The decision tree:
  This browser can't display the SVG file svg/option_manual-kick-test_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 (time-of-state-execution < 2000)   // wait 2000 ms
{
  
transition-to-state(wait);
}
else
{
  
transition-to-state(stand);
}