Point type was changed to pcl::PointSurfel in order to publish also the estimated normals within the /depth_segmentation/object_segment topic. Surfels were chosen so that we could also publish confidence, curvature and radius, but this feature is not added yet.
Also, we assign the original color to the points. Giving random color is only usefull for showing the whole segmented scene, but not for the topic which publishes the individual segements.
Point type was changed to pcl::PointSurfel in order to publish also the estimated normals within the /depth_segmentation/object_segment topic. Surfels were chosen so that we could also publish confidence, curvature and radius, but this feature is not added yet.
Also, we assign the original color to the points. Giving random color is only usefull for showing the whole segmented scene, but not for the topic which publishes the individual segements.