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

Revision history [back]

According to the design document for params, a 2D array of any type is not supported.

However, if you want to have a 2D array, instead of adding a parser yourself you can use the yaml-cpp library to do a lot of the heavy lifting. You would still pass in a string, but then just call YAML::Node yaml_node = YAML::Load(string) and it will parse it, and you can use its interface to get the values. Here is the yaml-cpp tutorial