mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
fixed deleting log files when a new database is created
This commit is contained in:
@@ -267,8 +267,9 @@ void Rtabmap::init(const ParametersMap & parameters, const std::string & databas
|
|||||||
_databasePath = _wDir + "/" + Parameters::getDefaultDatabaseName();
|
_databasePath = _wDir + "/" + Parameters::getDefaultDatabaseName();
|
||||||
}
|
}
|
||||||
UINFO("Using database \"%s\".", _databasePath.c_str());
|
UINFO("Using database \"%s\".", _databasePath.c_str());
|
||||||
|
bool newDatabase = !UFile::exists(_databasePath);
|
||||||
this->parseParameters(parameters);
|
this->parseParameters(parameters);
|
||||||
setupLogFiles(!UFile::exists(_databasePath));
|
setupLogFiles(newDatabase);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rtabmap::init(const std::string & configFile, const std::string & databasePath)
|
void Rtabmap::init(const std::string & configFile, const std::string & databasePath)
|
||||||
|
|||||||
Reference in New Issue
Block a user