pass ros param as argument to another param
Hello,
On my launch file I have a:
<rosparam command="load" file="$(find myrobot)/config/robot.yaml" />
statement which loads the parameters from my yaml file. again I have a node like:
<node name="controller" pkg="pid" type="controller" ns="left_wheel" output="screen" >
<param name="Kp" value="4.8" />
<param name="Ki" value="3.2" />
<param name="Kd" value="0.02" />
</node>
how can i make the second statement, take arguments from the yaml file. in the yaml file I have my parameters as /myrobot/params/kP ... etc, and I need to pass those parameters as an argument to the node config.
Any ideas greatly appreciated,
~Best