Using PCL with ROS for surface normal estimation
Hi Guys,
I am trying to use PCL with ROS for normal estimation of point cloud data published from Gazebo. when i am trying to run my code
pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal> ne;
ne.setInputCloud (cloud);
I got such errors
error: no matching function for call to ‘pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal>::setInputCloud(pcl::PCLPointCloud2*&)’
ne.setInputCloud (cloud);
Asked by ALI on 2019-06-05 07:21:42 UTC
Comments
You cannot pass a pcl::PointCloud2 directly as the input cloud. It needs to be a
pcl::PointCloud<input point type>::Ptr
see the example here.Asked by PeteBlackerThe3rd on 2019-06-06 07:16:14 UTC
Thank you so much it solved the problem
Asked by ALI on 2019-06-06 07:59:29 UTC