40 "rtabmap-recovery [-d] \"my_corrupted_map.db\"" 42 " -d Delete database backup on success (\"*.backup.db\").\n" 49 virtual bool callback(
const std::string & msg)
const 52 printf(
"%s\n", msg.c_str());
61 printf(
"\nSignal %d caught...\n", sig);
79 bool keepBackup =
true;
80 for(
int i=1; i<argc; ++i)
82 if(strcmp(argv[i],
"-d") == 0)
88 std::string databasePath = argv[argc-1];
91 printf(
"Recovering \"%s\"\n", databasePath.c_str());
94 printf(
"Error: %s\n", errorMsg.c_str());
virtual bool callback(const std::string &msg) const
int main(int argc, char *argv[])
static void setLevel(ULogger::Level level)
static void setType(Type type, const std::string &fileName=kDefaultLogFileName, bool append=true)
RecoveryProgressState state
bool RTABMAP_EXP databaseRecovery(const std::string &corruptedDatabase, bool keepCorruptedDatabase=true, std::string *errorMsg=0, ProgressState *progressState=0)
void setCanceled(bool canceled)