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:
matlabbe
2020-11-05 15:50:05 -05:00
parent d04b1a13be
commit e7a2f206a0
5 changed files with 8 additions and 10 deletions

View File

@@ -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(