mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
icp: enabled setting param "icp.setRANSACOutlierRejectionThreshold()" with the same maxCorrespondenceDistance used already for "icp.setMaxCorrespondenceDistance()"
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1594 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -1183,7 +1183,7 @@ Transform icp(const pcl::PointCloud<pcl::PointXYZ>::ConstPtr & cloud_source,
|
|||||||
//icp.setTransformationEpsilon (transformationEpsilon);
|
//icp.setTransformationEpsilon (transformationEpsilon);
|
||||||
// Set the euclidean distance difference epsilon (criterion 3)
|
// Set the euclidean distance difference epsilon (criterion 3)
|
||||||
//icp.setEuclideanFitnessEpsilon (1);
|
//icp.setEuclideanFitnessEpsilon (1);
|
||||||
//icp.setRANSACOutlierRejectionThreshold(maxCorrespondenceDistance);
|
icp.setRANSACOutlierRejectionThreshold(maxCorrespondenceDistance);
|
||||||
|
|
||||||
// Perform the alignment
|
// Perform the alignment
|
||||||
pcl::PointCloud<pcl::PointXYZ> cloud_source_registered;
|
pcl::PointCloud<pcl::PointXYZ> cloud_source_registered;
|
||||||
@@ -1220,7 +1220,7 @@ Transform icpPointToPlane(
|
|||||||
//icp.setTransformationEpsilon (transformationEpsilon);
|
//icp.setTransformationEpsilon (transformationEpsilon);
|
||||||
// Set the euclidean distance difference epsilon (criterion 3)
|
// Set the euclidean distance difference epsilon (criterion 3)
|
||||||
//icp.setEuclideanFitnessEpsilon (1);
|
//icp.setEuclideanFitnessEpsilon (1);
|
||||||
//icp.setRANSACOutlierRejectionThreshold(maxCorrespondenceDistance);
|
icp.setRANSACOutlierRejectionThreshold(maxCorrespondenceDistance);
|
||||||
|
|
||||||
// Perform the alignment
|
// Perform the alignment
|
||||||
pcl::PointCloud<pcl::PointNormal> cloud_source_registered;
|
pcl::PointCloud<pcl::PointNormal> cloud_source_registered;
|
||||||
@@ -1256,7 +1256,7 @@ Transform icp2D(const pcl::PointCloud<pcl::PointXYZ>::ConstPtr & cloud_source,
|
|||||||
//icp.setTransformationEpsilon (transformationEpsilon);
|
//icp.setTransformationEpsilon (transformationEpsilon);
|
||||||
// Set the euclidean distance difference epsilon (criterion 3)
|
// Set the euclidean distance difference epsilon (criterion 3)
|
||||||
//icp.setEuclideanFitnessEpsilon (1);
|
//icp.setEuclideanFitnessEpsilon (1);
|
||||||
//icp.setRANSACOutlierRejectionThreshold(maxCorrespondenceDistance);
|
icp.setRANSACOutlierRejectionThreshold(maxCorrespondenceDistance);
|
||||||
|
|
||||||
// Perform the alignment
|
// Perform the alignment
|
||||||
pcl::PointCloud<pcl::PointXYZ> cloud_source_registered;
|
pcl::PointCloud<pcl::PointXYZ> cloud_source_registered;
|
||||||
|
|||||||
Reference in New Issue
Block a user