DbViewer/detect more loop closures: removed a messagebox when silent and icp-only is used

This commit is contained in:
matlabbe
2019-09-26 12:29:11 -04:00
parent 547da3f3ce
commit 3fd5cdfb75
2 changed files with 10 additions and 6 deletions

View File

@@ -6868,11 +6868,14 @@ bool DatabaseViewer::addConstraint(int from, int to, bool silent)
if(fromIter != optimizedPoses.end() &&
toIter != optimizedPoses.end())
{
QMessageBox::information(this,
tr("Add constraint"),
tr("Registration is done without vision (see %1 parameter), "
"a guess is taken from the optimized graph.")
.arg(Parameters::kRegStrategy().c_str()));
if(!silent)
{
QMessageBox::information(this,
tr("Add constraint"),
tr("Registration is done without vision (see %1 parameter), "
"a guess is taken from the optimized graph.")
.arg(Parameters::kRegStrategy().c_str()));
}
guess = fromIter->second.inverse() * toIter->second;
}
}