Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix regression in pcl::SACSegmentation line fitting #2767

Merged
merged 1 commit into from
Jan 10, 2019

Conversation

ThorstenHarter
Copy link
Contributor

After updating from PCL 1.8.1 to 1.9.1 I realized that the pcl::SACSegmentation line fitting doesn't work anymore, if all points are in the ground plane (z=0), because pcl::SampleConsensusModelLine<PointT>::isSampleGood would always return false.

This problem was introduced with commit c529b5d, which fixed another bug (return true in both branches) that previously concealed this bug here.

In my opinion pcl::SampleConsensusModelLine<PointT>::isSampleGood should only check if the two sample points differ in one coordinate, not in all of them.

pcl::SampleConsensusModelLine<PointT>::isSampleGood should check if the two sample points differ in one coordinate, not in all of them.
@taketwo taketwo merged commit f3cc278 into PointCloudLibrary:master Jan 10, 2019
taketwo added a commit to taketwo/pcl that referenced this pull request Jan 10, 2019
All input points are on the ground plane. This test passes after PointCloudLibrary#2767
and fails before.
@taketwo
Copy link
Member

taketwo commented Jan 10, 2019

Good catch, thanks. I've created a PR with a quick test for this: #2768, please consider reviewing.

@taketwo taketwo changed the title Fix regression in pcl::SACSegmentation line fitting Fix regression in pcl::SACSegmentation line fitting Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants