mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
MainWindow: don't save empty database. Odometry: return null pose when not initialized.
This commit is contained in:
@@ -2415,8 +2415,6 @@ void MainWindow::startDetection()
|
||||
"progress will not be shown in the GUI."));
|
||||
}
|
||||
|
||||
_emptyNewDatabase = false; // if a new database is used, it won't be empty anymore...
|
||||
|
||||
emit stateChanged(kDetecting);
|
||||
}
|
||||
|
||||
@@ -3069,6 +3067,10 @@ void MainWindow::deleteMemory()
|
||||
}
|
||||
|
||||
this->post(new RtabmapEventCmd(RtabmapEventCmd::kCmdResetMemory));
|
||||
if(_state!=kDetecting)
|
||||
{
|
||||
_emptyNewDatabase = true;
|
||||
}
|
||||
this->clearTheCache();
|
||||
}
|
||||
|
||||
@@ -4648,6 +4650,8 @@ void MainWindow::changeState(MainWindow::State newState)
|
||||
_elapsedTime->start();
|
||||
_oneSecondTimer->start();
|
||||
|
||||
_emptyNewDatabase = false; // if a new database is used, it won't be empty anymore...
|
||||
|
||||
if(_camera)
|
||||
{
|
||||
_camera->start();
|
||||
|
||||
Reference in New Issue
Block a user