Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version


I am not sure that you can assign the values directly like that. Refer to the pcl::PointXYZRGB documentation:

It says "Due to historical reasons (PCL was first developed as a ROS package), the RGB information is packed into an integer and casted to a float. " and there is an example of how to pack/unpack the rgb data.