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);
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.Thank you so much it solved the problem