How to color channel in point cloud using python
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 = rospy.Time.now()
header.frame_id = 'camera_frame'
pcdMsg = pcl2.create_cloud_xyz32(header, cloud_points)
pcdMsg.channels = "rgb"
self.pcd_pub.publish(pcdMsg)
Asked by rnunziata on 2017-09-10 11:52:16 UTC
Comments