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

(How) Is it possible to set nodes' "args" attribute from a parameter?

asked 2011-10-11 09:02:12 -0600

updated 2011-10-11 10:49:47 -0600

kwc gravatar image

In launch files nodes have an "args" attribute that are used to pass command line arguments to a node. It is sometimes important to get those arguments from another place; from a parameter, for example.

Is there a way to do this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-10-11 10:50:09 -0600

kwc gravatar image

No, you cannot get that value from a parameter unless your code explicitly looks for a parameter.

edit flag offensive delete link more


Actually the other way around would be simpler: Always read from a parameter and pass _myparam:=value as a cmd line parameter.
dornhege gravatar image dornhege  ( 2011-10-12 00:04:36 -0600 )edit

Question Tools


Asked: 2011-10-11 09:02:12 -0600

Seen: 368 times

Last updated: Oct 11 '11