Skip to content

Commit

Permalink
improve RANSAC parameters
Browse files Browse the repository at this point in the history
It's still not good, but at least it does not look for cylinders of size 1m anymore.
  • Loading branch information
v4hn committed May 3, 2021
1 parent 7a0ece8 commit dd8a182
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ class CylinderSegment
// Set the normal angular distance weight
segmentor.setNormalDistanceWeight(0.1);
// run at max 1000 iterations before giving up
segmentor.setMaxIterations(10000);
segmentor.setMaxIterations(1000);
// tolerance for variation from model
segmentor.setDistanceThreshold(0.05);
segmentor.setDistanceThreshold(0.008);
// min max values of radius in meters to consider
segmentor.setRadiusLimits(0.0, 1.0);
segmentor.setRadiusLimits(0.01, 0.1);
segmentor.setInputCloud(cloud);
segmentor.setInputNormals(cloud_normals);

Expand Down

0 comments on commit dd8a182

Please sign in to comment.