Added g2o to search
parent
5e803e917e
commit
8dfd8e8a76
|
|
@ -77,6 +77,7 @@ string findExampleDataFile(const string &name) {
|
||||||
namesToSearch.push_back(name + ".txt");
|
namesToSearch.push_back(name + ".txt");
|
||||||
namesToSearch.push_back(name + ".out");
|
namesToSearch.push_back(name + ".out");
|
||||||
namesToSearch.push_back(name + ".xml");
|
namesToSearch.push_back(name + ".xml");
|
||||||
|
namesToSearch.push_back(name + ".g2o");
|
||||||
|
|
||||||
// Find first name that exists
|
// Find first name that exists
|
||||||
for (const fs::path root : rootsToSearch) {
|
for (const fs::path root : rootsToSearch) {
|
||||||
|
|
@ -87,10 +88,12 @@ string findExampleDataFile(const string &name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we did not return already, then we did not find the file
|
// If we did not return already, then we did not find the file
|
||||||
throw invalid_argument("gtsam::findExampleDataFile could not find a matching "
|
throw invalid_argument(
|
||||||
"file in\n" GTSAM_SOURCE_TREE_DATASET_DIR
|
"gtsam::findExampleDataFile could not find a matching "
|
||||||
" or\n" GTSAM_INSTALLED_DATASET_DIR " named\n" +
|
"file in\n" GTSAM_SOURCE_TREE_DATASET_DIR
|
||||||
name + ", " + name + ".graph, or " + name + ".txt");
|
" or\n" GTSAM_INSTALLED_DATASET_DIR " named\n" +
|
||||||
|
name + ", " + name + ".g2o, " + ", " + name + ".graph, or " + name +
|
||||||
|
".txt");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue