mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
DbViewer/detect more loop closures: removed a messagebox when silent and icp-only is used
This commit is contained in:
@@ -1159,7 +1159,8 @@ Transform RegistrationIcp::computeTransformationImpl(
|
|||||||
|
|
||||||
if(correspondences == 0)
|
if(correspondences == 0)
|
||||||
{
|
{
|
||||||
UERROR("Transform is found but no correspondences has been found!? Variance is unknown!");
|
UWARN("Transform is found (%s) but no correspondences has been found!? Variance is unknown!",
|
||||||
|
icpT.prettyPrint().c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6868,11 +6868,14 @@ bool DatabaseViewer::addConstraint(int from, int to, bool silent)
|
|||||||
if(fromIter != optimizedPoses.end() &&
|
if(fromIter != optimizedPoses.end() &&
|
||||||
toIter != optimizedPoses.end())
|
toIter != optimizedPoses.end())
|
||||||
{
|
{
|
||||||
QMessageBox::information(this,
|
if(!silent)
|
||||||
tr("Add constraint"),
|
{
|
||||||
tr("Registration is done without vision (see %1 parameter), "
|
QMessageBox::information(this,
|
||||||
"a guess is taken from the optimized graph.")
|
tr("Add constraint"),
|
||||||
.arg(Parameters::kRegStrategy().c_str()));
|
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;
|
guess = fromIter->second.inverse() * toIter->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user