Retrieve list of lists from yaml file / parameter server
I have a yaml file with a list of 3D points:
bb1: corners: [[-0.009000421,
-32.9505, 3.071861], [-0.009000659, -34.8755, 3.071861], [-0.009000659, -34.8755, 1.134362], [-0.009000421, -32.9505, 1.134362]] bound: [2.5, 2.5, 5.0]
I've got it in the launch file and can can successfully test for the param:
if(n.hasParam("path/bb1/corners"))
however I can't figure out how to actually read the values. I've looked here: http://wiki.ros.org/roscpp/Overview/P...
however the most it gives an example is how to retrieve a list of primitive types.
I tried XmlRpc::XmlRpcValue as well but if I
XmlRpc::XmlRpcValue cornerlist;
n.getParam("path/bb1/corners", cornerlist);
std::cout << "corner type: " << cornerlist.getType() << std::endl;
actually appears to work (was previously getting an error here, but had a typo in the param name). Is that the best way? How do I get the list of lists?