Ask Your Question
0

How to pass rosparam yaml file on rosrun cmd line

asked 2017-10-16 15:03:26 -0500

rnunziata gravatar image

Is there a way to pass rosparam yaml file on rosrun cmd line

  <node name="ptam" pkg="ptam" type="ptam" clear_params="true" output="screen">
     <remap from="image" to="/camera/image_mono" /> 
     <remap from="pose" to="pose"/>
     <rosparam file="$(find ptam)/PtamFixParams.yaml"/>
  </node>

but do

 rosrun ptam ptam image:= /camera/image_mono  _rosparam=PtamFixParams.yaml
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-16 16:14:08 -0500

ahendrix gravatar image

No, you cannot do this with rosrun

You can load parameters from yaml files with the rosparam load command: http://wiki.ros.org/rosparam#rosparam... . You may want to use the namespace argument to load your parameters into the private namespace for your node before you start it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2017-10-16 15:03:26 -0500

Seen: 2,550 times

Last updated: Oct 16 '17