GECKO 1.0
Human-computer interface based on hand gesture recognition
AppLauncher::AppLauncher ( std::string  config_file,
std::vector< int >  positive_matches,
std::vector< int >  negative_matches 
)

AppLauncher constructor.

Parameters:
config_filePath of the configuration file containing the program info
positive_matchesVector containing the minimum number of positive matches needed to trigger each command individually
negative_matchesVector containing the maximum number of negative matches allowed between two positive matches for each command individually
{
    configFileParser( config_file);

    if ( positive_matches.size() == _values_to_track.size() && negative_matches.size() == _values_to_track.size() )
        for (int i = 0; i < _values_to_track.size(); i++ )
        {
            StateMachine newMachine( _values_to_track[i], positive_matches[i], negative_matches[i] );
            _state_machines.push_back( newMachine);
        }
    else
        std::cerr << "[AppLauncher] Error: Indices of vectors do not match" << std::endl;

    _found = std::vector<bool>( _state_machines.size() );

}

Here is the call graph for this function:

 All Classes Functions Variables