Added g2o to search

release/4.3a0
Frank dellaert 2020-08-19 16:30:08 -04:00
parent 5e803e917e
commit 8dfd8e8a76
1 changed files with 7 additions and 4 deletions

View File

@ -77,6 +77,7 @@ string findExampleDataFile(const string &name) {
namesToSearch.push_back(name + ".txt");
namesToSearch.push_back(name + ".out");
namesToSearch.push_back(name + ".xml");
namesToSearch.push_back(name + ".g2o");
// Find first name that exists
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
throw invalid_argument("gtsam::findExampleDataFile could not find a matching "
"file in\n" GTSAM_SOURCE_TREE_DATASET_DIR
" or\n" GTSAM_INSTALLED_DATASET_DIR " named\n" +
name + ", " + name + ".graph, or " + name + ".txt");
throw invalid_argument(
"gtsam::findExampleDataFile could not find a matching "
"file in\n" GTSAM_SOURCE_TREE_DATASET_DIR
" or\n" GTSAM_INSTALLED_DATASET_DIR " named\n" +
name + ", " + name + ".g2o, " + ", " + name + ".graph, or " + name +
".txt");
}
/* ************************************************************************* */