mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 08:47:45 +08:00
fixed delete database action when memory is not yet initialized, enabled gpu SURF option when available
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1055 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -610,6 +610,7 @@ void Rtabmap::resetMemory(bool dbOverwritten)
|
||||
{
|
||||
// FIXME May be not work with other database type.
|
||||
// May be memory should be already created here, and use init above...
|
||||
UINFO("Erasing file : \"%s\"", getDatabasePath().c_str());
|
||||
UFile::erase(getDatabasePath());
|
||||
}
|
||||
this->setupLogFiles(dbOverwritten);
|
||||
@@ -1614,9 +1615,11 @@ void Rtabmap::setDatabasePath(const std::string & path)
|
||||
ULOGGER_DEBUG("Comparing new database path \"%s\" with \"%s\"", path.c_str(), _databasePath.c_str());
|
||||
if(path.compare(_databasePath) != 0)
|
||||
{
|
||||
UDEBUG("Set new database path to \"%s\"", _databasePath.c_str());
|
||||
_databasePath = path;
|
||||
if(_memory)
|
||||
{
|
||||
UDEBUG("Reset memory!");
|
||||
this->resetMemory();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user