-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[compile error] "Cannot add pcl::ColorGradientModality<pcl::PointXYZRGB> as member" #3839
Comments
Did you try using |
The |
That's not needed. The issue is with the full specialization. A work-around can be
This is unrelated to the error (based on my diagnosis), but you can't set it... You need to compile PCL with this flag. |
@kunaltyagi I'm new to CMake, can you explain how I can compile PCL with this flag? |
It's not needed in this case (but it's as simple as Please try to modify PCL source code at the offending lines (adding |
@kunaltyagi I made The function template for
are |
Issue Summary
I'm trying to create a wrapper class for
pcl::LINEMOD
which requires me to makepcl::ColorGradientModality
andpcl::SurfaceNormalModality
my member variables. I include the following headers and my .h file:but the build fails with the following errors:
To Reproduce
Create simple class with
pcl::ColorGradientModality
as a member.Screenshots/Code snippets/Build information
My implementation is along the following lines
MyClass.h
MyClass.cpp
Your Environment (please complete the following information):
If PCL was compiled from source or failure in compiling PCL itself:
Possible Solution
Based on this thread the solutions seems to be to separate
convolution.h
member methods into a separate .cpp file instead of anat the end of the file. Similarly for
color_grad_modality.h
as well.The text was updated successfully, but these errors were encountered: