Hi all,
I am trying to convert a ( previously cropped ) 3d array of pixel coordinates to a pointcloud to be published on ROS topic
`
for i in range(len(label_store)):
message=rosnp.point_cloud2.array_to_pointcloud2(XYZ_array)
/ros_numpy/point_cloud2.py", line 147, in array_to_pointcloud2
cloud_msg.fields = dtype_to_fields(cloud_arr.dtype)
/ros_numpy/point_cloud2.py", line 92, in dtype_to_fields
for field_name in dtype.names:
TypeError: 'NoneType' object is not iterable
Could you please point me to the errors ?
Thank you
Regards
Hi all, I am trying to convert a ( previously cropped ) 3d array of pixel coordinates to a pointcloud to be published on ROS topic ` for i in range(len(label_store)):
create custom message with 3D points of mask
`
I get the following error message
message=rosnp.point_cloud2.array_to_pointcloud2(XYZ_array) /ros_numpy/point_cloud2.py", line 147, in array_to_pointcloud2 cloud_msg.fields = dtype_to_fields(cloud_arr.dtype) /ros_numpy/point_cloud2.py", line 92, in dtype_to_fields for field_name in dtype.names: TypeError: 'NoneType' object is not iterable
Could you please point me to the errors ? Thank you Regards