RegVis: updated error msg on 2D-2D estimation when there are not enough features (https://github.com/introlab/rtabmap_ros/issues/1381)

This commit is contained in:
matlabbe
2025-12-03 21:52:47 -08:00
parent c7da53ac3d
commit 65867c47ae

View File

@@ -1670,14 +1670,10 @@ Transform RegistrationVis::computeTransformationImpl(
UINFO(msg.c_str());
}
}
else if(fromSignature.getWords().size() == 0)
else
{
msg = uFormat("No enough features (%d)", (int)fromSignature.getWords().size());
UWARN(msg.c_str());
}
else
{
msg = uFormat("No camera model");
msg = uFormat("No enough features < %s=%d (from=%d to=%d)",
Parameters::kVisMinInliers().c_str(), _minInliers, (int)fromSignature.getWords().size(), (int)toSignature.getWords().size());
UWARN(msg.c_str());
}
}