How to convert PointCloud2 fields from RGBA to RGB
Hi, I have pcd files and when I publish PointCloud2 using pcl_ros as
rosrun pcl_ros pcd_to_pointcloud my_file.pcd 0.1
It has the field of rgba
, not rgb
.
How can I convert this field to rgb
?
I'd like to re-publish this as PointCloudXYZRGB.
In my case, this works in my case.
My code snippet looks like (not a working example though):
ader, fields, _pcd)
Useful links: https://pointclouds.org/documentation...
http://docs.ros.org/en/jade/api/senso...