[ROS 2] layered yaml config file
Hi, I came across an example of a yaml file:
talker_ns:
talker:
ros__parameters:
some_int: 42
a_string: "Hello world"
more_params:
some_int2: 24
some_doubles : [3.14, 2.718]
I have no problems with reading the some_int and a_string like this:
get_parameter_or("some_int", some_int, int(0));
However, I can't wrap my head around how to read some_int2. I tried doing it by inserting the parameter category get_parameter_or("more_params/some_int2", some_int2, int(0));
but it doesn't work.
I'm using rclcpp_lifecycle node (I don't know if it matters).
What is the right way to do it?