(XYZ_cloud, color)
return XYZRGB_cloud
Converts a PCL XYZ point cloud to a PCL XYZRGB point cloud
    
        All returned points in the XYZRGB cloud will be the color indicated
        by the color parameter.
    
        Args:
            XYZ_cloud (PointCloud_XYZ): A PCL XYZ point cloud
            color (list): 3-element list of integers [0-255,0-255,0-255]
            
        Returns:
            PointCloud_PointXYZRGB: A PCL XYZRGB point cloud
Converts a PCL XYZ point cloud to a PCL XYZRGB point cloud
    
        All returned points in the XYZRGB cloud will be the color indicated
        by the color parameter.
    
        Args:
            XYZ_cloud (PointCloud_XYZ): A PCL XYZ point cloud
            color (list): 3-element list of integers [0-255,0-255,0-255]
            
        Returns:
            PointCloud_PointXYZRGB: A PCL XYZRGB point cloud
Converts a PCL XYZ point cloud to a PCL XYZRGB point cloud All returned points in the XYZRGB cloud will be the color indicated by the color parameter . Args : XYZ_cloud ( PointCloud_XYZ ) : A PCL XYZ point cloud color ( list ) : 3 - element list of integers [ 0 - 255 0 - 255 0 - 255 ] Returns : PointCloud_PointXYZRGB : A PCL XYZRGB point cloud
def XYZ_to_XYZRGB(XYZ_cloud, color):
    """ Converts a PCL XYZ point cloud to a PCL XYZRGB point cloud
    
        All returned points in the XYZRGB cloud will be the color indicated
        by the color parameter.
    
        Args:
            XYZ_cloud (PointCloud_XYZ): A PCL XYZ point cloud
            color (list): 3-element list of integers [0-255,0-255,0-255]
            
        Returns:
            PointCloud_PointXYZRGB: A PCL XYZRGB point cloud
    """
    XYZRGB_cloud = pcl.PointCloud_PointXYZRGB()
    points_list = []

    float_rgb = rgb_to_float(color)

    for data in XYZ_cloud:
        points_list.append([data[0], data[1], data[2], float_rgb])

    XYZRGB_cloud.from_list(points_list)
    return XYZRGB_cloud
def XYZ_to_XYZRGB ( XYZ_cloud , color ) : XYZRGB_cloud = pcl . PointCloud_PointXYZRGB ( ) points_list = [ ] float_rgb = rgb_to_float ( color ) for data in XYZ_cloud : points_list . append ( [ data [ 0 ] , data [ 1 ] , data [ 2 ] , float_rgb ] ) XYZRGB_cloud . from_list ( points_list ) return XYZRGB_cloud