| 
    GECKO 1.0 
   Human-computer interface based on hand gesture recognition 
   | 
 
Launchs applications triggered by events generated by StateMachine (s) More...
#include <AppLauncher.h>

Public Member Functions | |
| AppLauncher (std::string config_file, int positive_matches, int negative_matches) | |
| AppLauncher constructor.   | |
| AppLauncher (std::string config_file, std::vector< int > positive_matches, std::vector< int > negative_matches) | |
| AppLauncher constructor.   | |
| void | update (int current_value) | 
| Update the state of internal state machines and trigger the corresponding commands.   | |
| float | getPercentageMatches (int i) | 
| Returns the current number of positive matches of the ith value as a percentage.   | |
| bool | getFound (int i) | 
| Gets the current state of the ith state machine.   | |
| int | getValueToTrackAt (int i) | 
| Returns the current value set to track for the ith command.   | |
| int | getNumberOfCommands () | 
| Returns the number of commands loaded.   | |
Private Member Functions | |
| void | configFileParser (std::string config_file) | 
| Reads and parses a configuration file containing the commands and values that trigger them.   | |
Private Attributes | |
| std::vector< StateMachine > | _state_machines | 
| Vector containing the state machines for each command.   | |
| std::vector< std::string > | _commands_to_launch | 
| Vector containing the commmands to launch for each value.   | |
| std::vector< int > | _values_to_track | 
| Vector containing the values that trigger each command.   | |
| std::vector< bool > | _found | 
| Vector containing the current state of each state machine.   | |
Launchs applications triggered by events generated by StateMachine (s)
This class loads the programs and values that trigger them from a file.
The format of the file is:
$program1$ 1
$program2$ 2
Where the string between the dollar characters is the command to launch and the value at the end of each line is the value that triggers that commands.
 1.7.4