ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This code example won't compile.
You are setting the first elements of the vectors, but there are 0 elements in a new message that you create. Use .push_back
instead of setting the values to add new values.