mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
GUI: default use stamps from database
This commit is contained in:
@@ -2702,7 +2702,8 @@ void MainWindow::startDetection()
|
|||||||
float inputRate = _preferencesDialog->getGeneralInputRate();
|
float inputRate = _preferencesDialog->getGeneralInputRate();
|
||||||
float detectionRate = uStr2Float(parameters.at(Parameters::kRtabmapDetectionRate()));
|
float detectionRate = uStr2Float(parameters.at(Parameters::kRtabmapDetectionRate()));
|
||||||
int bufferingSize = uStr2Float(parameters.at(Parameters::kRtabmapImageBufferSize()));
|
int bufferingSize = uStr2Float(parameters.at(Parameters::kRtabmapImageBufferSize()));
|
||||||
if((detectionRate!=0.0f && detectionRate < inputRate) || (detectionRate > 0.0f && inputRate == 0.0f))
|
if(((detectionRate!=0.0f && detectionRate < inputRate) || (detectionRate > 0.0f && inputRate == 0.0f)) &&
|
||||||
|
(_preferencesDialog->getSourceDriver() != PreferencesDialog::kSrcDatabase || !_preferencesDialog->getSourceDatabaseStampsUsed()))
|
||||||
{
|
{
|
||||||
int button = QMessageBox::question(this,
|
int button = QMessageBox::question(this,
|
||||||
tr("Incompatible frame rates!"),
|
tr("Incompatible frame rates!"),
|
||||||
@@ -2717,7 +2718,8 @@ void MainWindow::startDetection()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(bufferingSize != 0)
|
if(bufferingSize != 0 &&
|
||||||
|
(_preferencesDialog->getSourceDriver() != PreferencesDialog::kSrcDatabase || !_preferencesDialog->getSourceDatabaseStampsUsed()))
|
||||||
{
|
{
|
||||||
int button = QMessageBox::question(this,
|
int button = QMessageBox::question(this,
|
||||||
tr("Some images may be skipped!"),
|
tr("Some images may be skipped!"),
|
||||||
|
|||||||
@@ -1040,7 +1040,7 @@ void PreferencesDialog::resetSettings(QGroupBox * groupBox)
|
|||||||
_ui->source_checkBox_ignoreOdometry->setChecked(false);
|
_ui->source_checkBox_ignoreOdometry->setChecked(false);
|
||||||
_ui->source_checkBox_ignoreGoalDelay->setChecked(false);
|
_ui->source_checkBox_ignoreGoalDelay->setChecked(false);
|
||||||
_ui->source_spinBox_databaseStartPos->setValue(0);
|
_ui->source_spinBox_databaseStartPos->setValue(0);
|
||||||
_ui->source_checkBox_useDbStamps->setChecked(false);
|
_ui->source_checkBox_useDbStamps->setChecked(true);
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
_ui->comboBox_cameraRGBD->setCurrentIndex(kSrcOpenNI2-kSrcRGBD); // openni2
|
_ui->comboBox_cameraRGBD->setCurrentIndex(kSrcOpenNI2-kSrcRGBD); // openni2
|
||||||
@@ -2147,6 +2147,7 @@ void PreferencesDialog::selectSourceDatabase()
|
|||||||
_ui->source_checkBox_ignoreOdometry->setChecked(r != QMessageBox::Yes);
|
_ui->source_checkBox_ignoreOdometry->setChecked(r != QMessageBox::Yes);
|
||||||
_ui->source_database_lineEdit_path->setText(paths.size()==1?paths.front():paths.join(";"));
|
_ui->source_database_lineEdit_path->setText(paths.size()==1?paths.front():paths.join(";"));
|
||||||
_ui->source_spinBox_databaseStartPos->setValue(0);
|
_ui->source_spinBox_databaseStartPos->setValue(0);
|
||||||
|
_ui->source_checkBox_useDbStamps->setChecked(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user