Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

@Akitoshi

I am not sure that you can assign the values directly like that. Refer to the pcl::PointXYZRGB documentation: http://docs.pointclouds.org/1.7.0/structpcl_1_1_point_x_y_z_r_g_b.html

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.