ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
If you want a continuous indicator of "color", you should convert the rgb-values to something like HSV and use the hue
component (together with appropriate saturation and value of course). Read this documentation of the pcl::PointXYZRGB Struct to understand, why they packed rgb into a float and how to access the single rgb-values of the point. (Either by recasting and bit shifting or directly by using the .r, .g, .b accessors)