ROS PointCloud2 to CloudXYZRGBA [closed]
I have from ROS an incoming PointCloud2 message and want to convert it to a different PointCloud message format. Can anyone help me with it? Can anyone help me to get "msg" into "input_cloud" in the followinig example?
void pcl::ihs::InHandScanner::grab_pc(const sensor_msgs::PointCloud2::ConstPtr& msg)
{
boost::function <void (const CloudXYZRGBAConstPtr&)> input_cloud;
//fill input_cloud here
}
Thanks ;)