# Revision history [back]

The pub.publish() takes a single message, a std_msgs/Float64MultiArrray in this case.

\$ rosmsg info std_msgs/Float64MultiArray
std_msgs/MultiArrayLayout layout
std_msgs/MultiArrayDimension[] dim
string label
uint32 size
uint32 stride
uint32 data_offset
float64[] data


You need to create an instance of this message, then populate all the required fields before you pass it to publish(). Unless you can find documentation for some magic shortcut for a single-dimension array, you've got to fill in the msg accurately.