mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
Gui: fixed warning scan not found when uncompressing data. Don't disable Mem/UseOdomFeatures checkbox anymore in monitoring mode (ROS).
This commit is contained in:
@@ -2603,7 +2603,7 @@ bool ExportCloudsDialog::getExportedClouds(
|
||||
|
||||
// texture mesh
|
||||
UDEBUG("texture mapping=%d", _ui->checkBox_textureMapping->isEnabled() && _ui->checkBox_textureMapping->isChecked()?1:0);
|
||||
if(!has2dScans && _ui->checkBox_textureMapping->isEnabled() && _ui->checkBox_textureMapping->isChecked())
|
||||
if(!has2dScans && !meshes.empty() && _ui->checkBox_textureMapping->isEnabled() && _ui->checkBox_textureMapping->isChecked())
|
||||
{
|
||||
_progressDialog->appendText(tr("Texturing..."));
|
||||
QApplication::processEvents();
|
||||
|
||||
@@ -1704,16 +1704,16 @@ void MainWindow::processStats(const rtabmap::Statistics & stat)
|
||||
|
||||
// make sure data are uncompressed
|
||||
// We don't need to uncompress images if we don't show them
|
||||
bool uncompressImages =
|
||||
bool uncompressImages = !signature.sensorData().imageCompressed().empty() && (
|
||||
_ui->imageView_source->isVisible() ||
|
||||
(_loopClosureViewer->isVisible() &&
|
||||
!signature.sensorData().depthOrRightCompressed().empty()) ||
|
||||
(_cloudViewer->isVisible() &&
|
||||
_preferencesDialog->isCloudsShown(0) &&
|
||||
!signature.sensorData().depthOrRightCompressed().empty());
|
||||
bool uncompressScan =
|
||||
!signature.sensorData().depthOrRightCompressed().empty()));
|
||||
bool uncompressScan = !signature.sensorData().laserScanCompressed().isEmpty() && (
|
||||
_loopClosureViewer->isVisible() ||
|
||||
(_cloudViewer->isVisible() && _preferencesDialog->isScansShown(0));
|
||||
(_cloudViewer->isVisible() && _preferencesDialog->isScansShown(0)));
|
||||
cv::Mat tmpRgb, tmpDepth, tmpG, tmpO, tmpE;
|
||||
LaserScan tmpScan;
|
||||
signature.sensorData().uncompressData(
|
||||
|
||||
@@ -3291,9 +3291,6 @@ void PreferencesDialog::showEvent ( QShowEvent * event )
|
||||
_ui->groupBox_source0->setEnabled(false);
|
||||
_ui->groupBox_odometry1->setEnabled(false);
|
||||
|
||||
_ui->checkBox_useOdomFeatures->setChecked(false);
|
||||
_ui->checkBox_useOdomFeatures->setEnabled(false);
|
||||
|
||||
this->setWindowTitle(tr("Preferences [Monitoring mode]"));
|
||||
}
|
||||
else
|
||||
@@ -3305,8 +3302,6 @@ void PreferencesDialog::showEvent ( QShowEvent * event )
|
||||
_ui->groupBox_source0->setEnabled(true);
|
||||
_ui->groupBox_odometry1->setEnabled(true);
|
||||
|
||||
_ui->checkBox_useOdomFeatures->setEnabled(true);
|
||||
|
||||
this->setWindowTitle(tr("Preferences"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user