ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The first thing that you need is to change the way you wrote the YAML file.
test:
values0: [ 0.0, 0.1, 0.2]
values1: [ 0.0, -0.1, -0.2]
To something like that, each array has a name.
1| ros::NodeHandle node;
|
2| std::vector<double> vectorVar;
3| node.getParam("test/values0", vectorVar);
And for each array, you must repeat step 2 and 3, or create a vector of a vector.
Let me aware if it is working, I tried this solution here before, but we never know.