ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The correct format for message-type in a .msg file is

package_name/data_type_name[] variable name

Where data_type_name is a message in the package package_name

eg.

std_msgs/Float64[] values

Note that this is not a regular array in c++.

After generating the msg file, if you look at the .h file for that message, you will find that values is a vector of doubles.

std::vector <double> values;