mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
icpCC: when force3DoF is true, set z to 0 in data conversion
This commit is contained in:
@@ -91,7 +91,7 @@ rtabmap::Transform icpCC(
|
|||||||
CCVector3 P;
|
CCVector3 P;
|
||||||
P.x = fromCloud->points[nIndex].x;
|
P.x = fromCloud->points[nIndex].x;
|
||||||
P.y = fromCloud->points[nIndex].y;
|
P.y = fromCloud->points[nIndex].y;
|
||||||
P.z = fromCloud->points[nIndex].z;
|
P.z = force3DoF?0:fromCloud->points[nIndex].z;
|
||||||
fromPointCloud.addPoint(P);
|
fromPointCloud.addPoint(P);
|
||||||
}
|
}
|
||||||
toPointCloud.reserve(toCloud->points.size());
|
toPointCloud.reserve(toCloud->points.size());
|
||||||
@@ -100,7 +100,7 @@ rtabmap::Transform icpCC(
|
|||||||
CCVector3 P;
|
CCVector3 P;
|
||||||
P.x = toCloud->points[nIndex].x;
|
P.x = toCloud->points[nIndex].x;
|
||||||
P.y = toCloud->points[nIndex].y;
|
P.y = toCloud->points[nIndex].y;
|
||||||
P.z = toCloud->points[nIndex].z;
|
P.z = force3DoF?0:toCloud->points[nIndex].z;
|
||||||
toPointCloud.addPoint(P);
|
toPointCloud.addPoint(P);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user