Convert sensor_msgs::PointCloud2ConstPtr to pcl::PointCloud<pcl::PointXYZ>::Ptr
Hello
I'm using the SampleConsensusModelLine, which requires a pointcloud on the form of pcl::PointCloud<pcl::pointxyz>::Ptr. However, the callback for the point cloud uses the form sensor_msgs::PointCloud2ConstPtr. How do I convert one to the other?