Very Confusing Float64MultiArray Error [closed]
I get rospy.exceptions.ROSSerializationException: field data[] must be float type
in terminal
When I rostopic echo a topic recieving Float64MultiArray
message. This is a snippet of my python code:
M = Float64MultiArray()
Tab=np.zeros((11521,10))
Values in Tab are manipulated,some are int, some are float.
M.data=(Tab.astype(float)).tolist()
pub.publish(M)
I don't get it, M.data is of type float
. is Tab too big?
Did you try creating the array by setting explicitly the type:
Tab=np.zeros((11521,10),dtype=np.float64)
?@AlessioParmeggiani This still gives the same error