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

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"/>

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

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: . 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



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

Seen: 3,135 times

Last updated: Oct 16 '17