sensor_msgs::LaserScan to PCLPointCloud2 in Indigo
Hi folks,
I want to know how can I convert an sensor_msgs::LaserScan::ConstPtr& to an pcl::PCLPointCloud2 object?
Specifically, what libraries (e.g., "pcl/conver.h" or something like that), what functions (e.g., pcl::fromLasertoPoinCloud() or something like that), and intermediary conversion variables, if any (e.g., from laser-->laserToCloud_holder-->PCLPointCloud).
PS: giving me the direct answer right here is 10x more useful than sending me to a "Migration" website, etc. (because I am also reading some of them already). Sample code/projects is also useful!
Thanks in advanced.