open3d_ros_pointcloud_conversion
open3d_ros_pointcloud_conversion copied to clipboard
Problem with XYZRGB in convertCloudFromOpen3dToRos
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.