Error sending numpy array with rospy ROSSerializationException
Published in
Apr 18, 2024
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