Calibration 3-steps: fixed crash on step 3 if intrinsic parameters are not correctly loaded (empty distorsion model)

This commit is contained in:
matlabbe
2016-09-30 14:38:45 -04:00
parent 403bfc2b44
commit b17e0dc26d
2 changed files with 31 additions and 14 deletions

View File

@@ -4881,7 +4881,11 @@ void PreferencesDialog::calibrate()
if(stereoModel.stereoTransform().isNull())
{
QMessageBox::warning(this, tr("Calibration"),
tr("Extrinsic calibration has failed!"), QMessageBox::Ok);
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);
}
else if(stereoModel.saveStereoTransform(this->getCameraInfoDir().toStdString()))
{