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

wave_matching const correctness #252

Open
leokoppel opened this issue Nov 23, 2017 · 0 comments
Open

wave_matching const correctness #252

leokoppel opened this issue Nov 23, 2017 · 0 comments
Assignees

Comments

@leokoppel
Copy link
Contributor

leokoppel commented Nov 23, 2017

Currently using wave_matching it is very hard to write a const-correct program. The library itself should be const correct.

It may also be preferable to accept references to PointCloud instead of references to smart pointers, but probably best to be consistent with PCL. Note the difference between const shared_ptr<T> and shared_ptr<const T>.

Current

Functions accept PointCloud::Ptr arguments even though they never change the input

Desired

  • Functions should accept accept const PointCloud& arguments when they never change the input.
  • Functions should accept PointCloud::ConstPtr& arguments if they need to modify the smart pointer itself.
  • Maybe const PointCloud::ConstPtr & is OK because PCL interface is written this way.
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

No branches or pull requests

2 participants