get YAML list of dictionary items with ros::param in C++
I would like to define a list of items in a yaml file which I read in with ros::param::param<t>()
It works fine if I read in a normal double or string:
ros::param::param<double>("list/pos_x",pos_x,0.0);
if my yaml file is defined as:
list:
- {'id': 0, 'name': 'john', 'pos':[0,0,0]}
- {'id': 1, 'name': 'anna', 'pos':[0,0,0]}
- {'id': 2, 'name': 'bill', 'pos':[0,0,0]}
How can i access these with ros::param?