ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to pass rosparam yaml file on rosrun cmd line

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

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 -0600

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

Question Tools

3 followers

Stats

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

Seen: 3,224 times

Last updated: Oct 16 '17