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

Add missing typedefs to PointCloud for stl container compatibility #1741

Conversation

stefanbuettner
Copy link
Contributor

Hi there,

I added some typedefs to the PointCloud class, which should enable it to be used with more stl algorithms. This patch originates in the following pcl-users thread where sb. wanted to copy the fields of a point cloud A into a point cloud C, but only if the xyz value was in a point cloud B.
Instead of doing that manually in a loop I thought why not use stl methods for that, specifically set_intersection. There I ran into compilation problems originating in these missing typedefs. With this patch, the example compiles and works as expected.

Best,
Stefan

@SergioRAgostinho SergioRAgostinho added this to the pcl-1.9.0 milestone Oct 24, 2016
@SergioRAgostinho SergioRAgostinho added the needs: code review Specify why not closed/merged yet label Oct 24, 2016
Copy link
Member

@taketwo taketwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Why not 1.8.1?

@SergioRAgostinho
Copy link
Member

I was being pedantically strict on the "no public api changes on the minor versions", but totally open to discussion. Opinions @jspricke and @VictorLamoine ?

@jspricke
Copy link
Member

jspricke commented Nov 8, 2016

The problem are not API but ABI changes and these are only typedefs, so I don't see a problem,

@VictorLamoine
Copy link
Contributor

👍

@SergioRAgostinho SergioRAgostinho modified the milestones: pcl-1.8.1, pcl-1.9.0 Nov 13, 2016
@SergioRAgostinho SergioRAgostinho removed the needs: code review Specify why not closed/merged yet label Nov 13, 2016
@SergioRAgostinho SergioRAgostinho merged commit e66d90e into PointCloudLibrary:master Nov 13, 2016
@stefanbuettner stefanbuettner deleted the pointCloudStdContainer branch June 9, 2017 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants