Error sending numpy array with rospy ROSSerializationException

rospy.exceptions.ROSSerializationException: field data[] must be float type

The type of array sent is a two-dimensional array , this problem will occur. Change the array to a one-dimensional array, this problem will not occur.

That is, just put the array xxx.flatten ().

If you have any questions or customized development requirements, you can contact me Email or WhatsApp : lonlonago@foxmail.com

--

--

PointCloud-Slam-Image-Web3
Python & Other

Familiar with point cloud data and image processing, interested in web3, take customization or consulting needs, enjoy work remotely, lonlonago@foxmail.com