Getting hierarchy level of yaml parameter
Hi,
I want to use ros param to traverse files like this:
pcl_filter:
filter:
filter_cascade_1:
in: cloud_in
out: cloud_out
filter:
first_applied_filter:
- config_for_filter_1
- config_for_filter_2
second_applied_filter:
- config_for_filter_1
- config_for_filter_2
filter_cascade_2:
in: other_cloud_in
out: other_cloud_out
filter:
first_applied_filter:
- config_for_filter_1
- config_for_filter_2
second_applied_filter:
- config_for_filter_1
- config_for_filter_2
There I would like to get all cascades of the param "filter". In the node pcl_filter I search for something like
std::vector<std::string> param;
getParam("filter", param);
But this just seems to work with something like:
pcl_filter:
filter:
- filter_cascade_1
- filter_cascade_1
And:
std::map<std::string, std::string> param;
getParam("filter", param);
just workes with:
pcl_filter:
filter:
filter_cascade_1: a
filter_cascade_1: b
Does somebody know a way to get all of these parameter?
Thanks for your help