How to color channel in point cloud using python

asked 2017-09-10 11:52:16 -0500

rnunziata gravatar image

Is there a way to specify a color channel in python for a point cloud. Right now all I can do is pass the depth how do I add the image rgb data in pytlhon? Is there a pcl:toROSMsg

    cloud_points = self.get_point_cloud(depth_image, image) 

    header = std_msgs.msg.Header()
    header.stamp =  
    header.frame_id = 'camera_frame'

    pcdMsg = pcl2.create_cloud_xyz32(header, cloud_points)
    pcdMsg.channels = "rgb"
edit retag flag offensive close merge delete