From 29f4734ec6ff5321c3aa433233234ca081982567 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Fri, 30 Sep 2016 14:47:55 -0400 Subject: [PATCH] Calibration 3-steps: updated warning msg --- guilib/src/PreferencesDialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guilib/src/PreferencesDialog.cpp b/guilib/src/PreferencesDialog.cpp index b9fc8b0a..0fd12a33 100644 --- a/guilib/src/PreferencesDialog.cpp +++ b/guilib/src/PreferencesDialog.cpp @@ -4820,6 +4820,7 @@ void PreferencesDialog::calibrate() _calibrationDialog->show(); CameraModel irModel; CameraModel rgbModel; + std::string serial; for(;count < totalSamples && button == QMessageBox::Yes; ) { // Step 3: Extrinsics @@ -4838,7 +4839,7 @@ void PreferencesDialog::calibrate() return; } SensorData irData = camera->takeImage(); - std::string serial = camera->getSerial(); + serial = camera->getSerial(); UASSERT(irData.cameraModels().size() == 1); irModel = irData.cameraModels()[0]; delete camera; @@ -4882,10 +4883,9 @@ void PreferencesDialog::calibrate() { QMessageBox::warning(this, tr("Calibration"), tr("Extrinsic calibration has failed! Look on the terminal " - "for possible error messages. Make sure the calibration " - "name is set and that corresponding calibration files exist " - "in \"Documents/RTAB-Map/camera_info\" folder. If not, re-do " - "step 1 and 2 and make sure to export the calibration files."), QMessageBox::Ok); + "for possible error messages. Make sure corresponding calibration files exist " + "in \"%1\" folder for camera \"%2\" or calibration name set. If not, re-do " + "step 1 and 2 and make sure to export the calibration files.").arg(this->getCameraInfoDir()).arg(serial.c_str()), QMessageBox::Ok); } else if(stereoModel.saveStereoTransform(this->getCameraInfoDir().toStdString())) {