Merge pull request #658 from Dominik-FKIE/patch-1

Bugfix Corewrapper::globalBundleAdjustmentCallback
This commit is contained in:
matlabbe
2021-10-14 15:59:17 -04:00
committed by GitHub
+1 -1
View File
@@ -3233,7 +3233,7 @@ bool CoreWrapper::globalBundleAdjustmentCallback(rtabmap_ros::GlobalBundleAdjust
iterations, iterations,
pixelVariance, pixelVariance,
rematchFeatures?"true":"false"); rematchFeatures?"true":"false");
bool success = rtabmap_.globalBundleAdjustment((Optimizer::Type)optimizer, iterations, pixelVariance, rematchFeatures); bool success = rtabmap_.globalBundleAdjustment((Optimizer::Type)optimizer, rematchFeatures, iterations, pixelVariance);
if(!success) if(!success)
{ {
NODELET_ERROR("Post-Processing: Global Bundle Adjustment failed!"); NODELET_ERROR("Post-Processing: Global Bundle Adjustment failed!");