open3d_ros_pointcloud_conversion icon indicating copy to clipboard operation
open3d_ros_pointcloud_conversion copied to clipboard

Problem with XYZRGB in convertCloudFromOpen3dToRos

Open chancecardona opened this issue 1 year ago • 0 comments

convertCloudFromOpen3dToRos doesn't properly handle the final part of concatenating colors and points. On the line cloud_data = np.c_[points, colors] this doesn't properly apply the dtypes for a numpy structured array. Instead, the only function I've been able to get this to work with is: cloud_data = [tuple((*p, c)) for p, c in zip(points, colors)]

We could also reshape colors to a col, then concat them, but would still need to do a tuple for each row when applying dtypes.

chancecardona avatar Apr 26 '23 22:04 chancecardona