used dbu extension for update files

This commit is contained in:
matlabbe
2026-07-10 20:54:51 -07:00
parent e61a45e44f
commit b532319885
9 changed files with 65 additions and 32 deletions

View File

@@ -59,10 +59,11 @@ void showUsage(const char * exec)
" --keep_linked Keep reduced nodes linked to graph.\n"
" --pre_cleanup Remove all user loop closures linking nodes closer than %s in the graph before reducing the graph.\n"
" --radius #.# Maximum loop closure distance that can be merged. Default is 1 m. Should be > 0.\n"
" --track-changes \"changes.update\"\n"
" --track-changes \"changes.dbu\"\n"
" Record the changes made to the database (reduced nodes, removed links) and write a\n"
" compact delta to the given file, applied later on another copy with rtabmap-dbupdate.\n"
" Requires the database to be version 0.24 or newer.\n"
" compact delta to the given file. Apply it later on another copy with\n"
" rtabmap-dbupdate, or revert the reduction done to this database with\n"
" \"rtabmap-dbupdate --rewind\". Requires the database to be version 0.24 or newer.\n"
" --udebug/--uinfo/--warn can also be used to change verbosity.\n"
"\n", exec, Parameters::kMemSTMSize().c_str());
exit(1);
@@ -95,6 +96,11 @@ int main(int argc, char * argv[])
if(i < argc-1)
{
trackChangesOutput = argv[i];
if(UFile::getExtension(trackChangesOutput).compare("dbu") != 0)
{
printf("--track-changes file \"%s\" must have a \".dbu\" (db update) extension!\n", trackChangesOutput.c_str());
showUsage(argv[0]);
}
}
else
{