Skip to content
Snippets Groups Projects
Commit b571b445 authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

FIX check relative path of vision_utils YAML in trifocal parameters

parent 8ddeeee4
No related branches found
No related tags found
1 merge request!201FIX vision_utils global path and check existence of (install)Sensor and…
Pipeline #
This commit is part of merge request !201. Comments created here will be created in the context of that merge request.
...@@ -41,7 +41,7 @@ static ProcessorParamsBasePtr createProcessorParamsTrackerFeatureTrifocal(const ...@@ -41,7 +41,7 @@ static ProcessorParamsBasePtr createProcessorParamsTrackerFeatureTrifocal(const
params->yaml_file_params_vision_utils = vision_utils["YAML file params"].as<std::string>(); params->yaml_file_params_vision_utils = vision_utils["YAML file params"].as<std::string>();
// relative to global path for Vision Utils YAML // relative to global path for Vision Utils YAML
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. "); 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 first = _filename_dot_yaml.find("/");
unsigned last = _filename_dot_yaml.find_last_of("/"); unsigned last = _filename_dot_yaml.find_last_of("/");
std::string strNew = _filename_dot_yaml.substr (first,last-first); std::string strNew = _filename_dot_yaml.substr (first,last-first);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment