UniformSampling has no member named ‘compute’

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

UniformSampling has no member named ‘compute’

DIJA28
I have a problem using Uniform_sampling
I tried first to compile work of  G.Dabisisa about “3D object recognition”,  in order to replicate the same processes but I got the following  error:  

"error: ‘class pcl::UniformSampling<pcl::PointXYZRGB>’ has no member named ‘compute’"

Could anyone help me to to solve this  problem? Or just giving me hints( what is missing)?

I'm sorry if these questions are very basic, I'm very new in PCL.

 

Thank you .
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

LuisRocha26
Hello,

Try to post some more information concerning your problem so we can help you (code snippets, logs, stack traces, etc.).

DIJA28 wrote
"error: ‘class pcl::UniformSampling<pcl::PointXYZRGB>’ has no member named ‘compute’"
Indeed the class UniformSampling has no compute() method. Classes inheriting from Filter base class implement applyFilter() as their "start button". As far as I know, the compute() method is the "start button" in classes deriving from Feature.

You may want to check the documentation for UniformSampling and this tutorial where it is used for downsampling a point cloud.

Best regards,

Luís Rocha
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

vs-tec
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

DIJA28
Thank you for your answer.

Cheers
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

termin
This post has NOT been accepted by the mailing list yet.
Hi,

so in pcl 1.8, uniform sampling generates a new filtered cloud?
In that case,how can i extract keypoints as in pcl 1.6:

        pcl::PointCloud<int> indices;
        pcl::UniformSampling<pcl::PointXYZ> uniform_sampling;
        uniform_sampling.setInputCloud(cloud);
        uniform_sampling.setRadiusSearch(radius);
        uniform_sampling.compute(indices);

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

phil_rudd69
This post was updated on .
Hi,

same problem here, I just tried to switch from pcl_ros (PCL 1.7 of ROS indigo)
to PCL 1.8, because I need pcl::gpu::octree.
It seems as if some functions got renamed in PCL 1.8.

I probably resolved the issue by adding

find_package(
     PCL 1.8 REQUIRED
)

to cMakeLists.txt. Additionally as a seperate statement to the already
present

find_package(
     catkin REQUIRED
     pcl_ros
)

catkin does not look in the right places for PCL, that's why one has find
PCL with a separate statement.
And in the .cpp I added the 1.8 specific headers:

#include<pcl-1.8/pcl/gpu/ ... >

that way it seems as if I can use the best of both PCL versions.

getting some other runtime-error though:
     Error: CUDA driver version is insufficient for CUDA runtime version
/pcl/gpu/containers/src/device_memory.cpp:149
so maybe my "solution" isn't working after all.



--
Sent from: http://www.pcl-users.org/
_______________________________________________
PCL-users@pointclouds.org / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users

meine oma fährt im hühnerstall motorrad, bitch! :D