diff --git a/src/yaml/processor_tracker_feature_trifocal_yaml.cpp b/src/yaml/processor_tracker_feature_trifocal_yaml.cpp index f9abd9b10230106256e24ded916e1c8f30b0bbad..9b65acad18780e326d2c2195bb25d0c2d2cf4b55 100644 --- a/src/yaml/processor_tracker_feature_trifocal_yaml.cpp +++ b/src/yaml/processor_tracker_feature_trifocal_yaml.cpp @@ -41,7 +41,7 @@ static ProcessorParamsBasePtr createProcessorParamsTrackerFeatureTrifocal(const params->yaml_file_params_vision_utils = vision_utils["YAML file params"].as<std::string>(); // relative to global path for Vision Utils YAML - assert(params->yaml_file_params_vision_utils.find('/') == std::string::npos && "The parameter -YAML file params- must be specified with a path relative to the processor YAML file. "); + assert(params->yaml_file_params_vision_utils.find('..') != std::string::npos && params->yaml_file_params_vision_utils.find('/') == std::string::npos && "The parameter -YAML file params- must be specified with a path relative to the processor YAML file. "); unsigned first = _filename_dot_yaml.find("/"); unsigned last = _filename_dot_yaml.find_last_of("/"); std::string strNew = _filename_dot_yaml.substr (first,last-first);