Use param for remapping in launch file
Hello,
I have several nodes with common parameters so I tought it would be nice for debugging to have all of them just in one file and not in all of them. This is working fine but the problem is that remapping it is not able to retrieve this parameters. Is there any way for doing this? Either using the ROS API either scripting? This is an example of what I am trying to do:
<launch>
<node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen">
<rosparam file="$(find car_navigation)/param/teb_local_planner_params.yaml" command="load" />
<!-- Here are the params shared by several nodes -->
<rosparam file="$(find car_bringup)/param/common_params.yaml" command="load" />
<!-- Here is getting the parameter from the previous file and working properly-->
<param name="x_size" value="$(arg x_size)" />
<!-- Here I am having the problem when remapping -->
<remap from="cmd_vel" to="$(arg vel_cmd_topic)"/>
<remap from="max_speed" to="$(arg max_speed)"/>
</node>
</launch>