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 following command will publish your data and give you access to your two parameters.

rostopic pub /cmd std_msgs/Float32MultiArray '{data: [100, 100]}' --once

You're not using the layout in your code so we don't need to set it in this use case. The error you had is mainly because the published data is not formatted correctly.