mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-09-12 22:30:19 +08:00
Added "-d" option for convenience (same as --delete_db_on_start)
This commit is contained in:
+2
-2
@@ -270,7 +270,7 @@ void CoreWrapper::onInit()
|
||||
for(unsigned int i=0; i<argList.size(); ++i)
|
||||
{
|
||||
argv[i] = &argList[i].at(0);
|
||||
if(strcmp(argv[i], "--delete_db_on_start") == 0)
|
||||
if(strcmp(argv[i], "--delete_db_on_start") == 0 || strcmp(argv[i], "-d") == 0)
|
||||
{
|
||||
deleteDbOnStart = true;
|
||||
}
|
||||
@@ -392,7 +392,7 @@ void CoreWrapper::onInit()
|
||||
{
|
||||
if(UFile::erase(databasePath_) == 0)
|
||||
{
|
||||
NODELET_INFO("rtabmap: Deleted database \"%s\" (--delete_db_on_start is set).", databasePath_.c_str());
|
||||
NODELET_INFO("rtabmap: Deleted database \"%s\" (--delete_db_on_start or -d are set).", databasePath_.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user