Option joystick-controlled
Root option of the joystick controlled behavior
State Machine
State initial
This state is a target state.
|
| If that state is active, |
|
>
|
The option joystick-head-control is executed. |
| |
|
>
|
These output symbols are set: |
| |
|
| |
| The decision tree: |
| |
|
| |
| Pseudo code of the decision tree: |
| |
| | | |
| transition-to-state(ready); |
|
| |
|
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // initial message received |
| | | |
|
| else if ( | | ) | // ready message received |
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // set message received |
| | | |
| transition-to-state(set); |
|
| |
|
| else if ( | | ) | // penalized message received |
| | | |
|
| else if ( | | ) | // finished message received |
| | | |
| | | | |
| if ( | | ) | // playing message received |
| | | |
|
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | time-of-state-execution < 1000 | ) | // state running less than 1 second |
| | | |
|
| | | |
| transition-to-state(ready); |
|
| |
|
|
|
|
| |
|
|
|
State ready
| If that state is active, |
|
>
|
The option joystick-head-control is executed. |
| |
|
>
|
These output symbols are set: |
| |
|
| |
| The decision tree: |
| |
|
| |
| Pseudo code of the decision tree: |
| |
| | | |
| transition-to-state(ready); |
|
| |
|
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // initial message received |
| | | |
|
| else if ( | | ) | // ready message received |
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // set message received |
| | | |
| transition-to-state(set); |
|
| |
|
| else if ( | | ) | // penalized message received |
| | | |
|
| else if ( | | ) | // finished message received |
| | | |
| | | | |
| if ( | | ) | // playing message received |
| | | |
|
| else if ( | subsequent-option-reached-target-state | ) | // ready is in target state |
| | | |
| transition-to-state(set); |
|
| |
|
| else if ( | time-of-state-execution < 1000 | ) | // state running less than 1 second |
| | | |
| transition-to-state(ready); |
|
| |
|
| | | |
| transition-to-state(set); |
|
| |
|
| | | |
| transition-to-state(ready); |
|
| |
|
|
|
| |
|
|
|
State set
| If that state is active, |
|
>
|
The basic behavior stand is executed. |
| |
|
>
|
These output symbols are set: |
| |
|
| |
| The decision tree: |
| |
|
| |
| Pseudo code of the decision tree: |
| |
| | | |
| transition-to-state(ready); |
|
| |
|
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // initial message received |
| | | |
|
| else if ( | | ) | // ready message received |
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // set message received |
| | | |
| transition-to-state(set); |
|
| |
|
| else if ( | | ) | // penalized message received |
| | | |
|
| else if ( | | ) | // finished message received |
| | | |
| | | | |
| if ( | | ) | // playing message received |
| | | |
|
| else if ( | time-of-state-execution < 1000 | ) | // state running less than 1 second |
| | | |
| transition-to-state(set); |
|
| |
|
|
| | | |
| transition-to-state(set); |
|
| |
|
|
|
| |
|
|
|
State playing
State penalized
| If that state is active, |
|
>
|
The option penalized is executed. |
| |
|
>
|
These output symbols are set: |
| |
|
| |
| The decision tree: |
| |
|
| |
| Pseudo code of the decision tree: |
| |
| | | |
| transition-to-state(ready); |
|
| |
|
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // initial message received |
| | | |
|
| else if ( | | ) | // ready message received |
| | | |
| transition-to-state(ready); |
|
| |
|
| else if ( | | ) | // set message received |
| | | |
| transition-to-state(set); |
|
| |
|
| else if ( | | ) | // penalized message received |
| | | |
|
| else if ( | | ) | // finished message received |
| | | |
| | | | |
| if ( | | ) | // playing message received |
| | | |
|
| else if ( | time-of-state-execution < 1000 | ) | // state running less than 1 second |
| | | |
|
|
|
|
|
|
| |
|
|
|
State finished
|