How to use a parameter file with a rosrun
Hi
I have a node like the laser_filter, amcl or move base with many parameters. Using a launch file allows me to store the parameters within a yaml file like:
<node name="move_base" output="screen" pkg="move_base" respawn="false" type="move_base">
<rosparam command="load" file="$(find cfg_pkg)/cfg/common_costmap.yaml" ns="global_costmap">
<rosparam command="load" file="$(find cfg_pkg)/cfg/common_costmap.yaml" ns="local_costmap">
<rosparam command="load" file="$(find cfg_pkg)/cfg/global_costmap.yaml">
<rosparam command="load" file="$(find cfg_pkg)/cfg/local_costmap.yaml">
<rosparam command="load" file="$(find cfg_pkg)/cfg/base_local_planner.yaml">
</rosparam></rosparam></rosparam></rosparam></rosparam></node>
But I like to start the node directly but how are the options to load parmater files? Using the using the underline like with normal parameters are not working?
I am looking for something like:
rosrun move_base move_base _load:=????? #
Greetings
Actually one simple trick depending on what you want to do is: Run the launch file once (that loads all parameters correctly like you set it up) and the just run the node. The parameters from the launch stay on the param server.