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

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

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

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

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
1

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

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

Comments

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 -0500 )edit

Question Tools

Stats

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

Seen: 385 times

Last updated: Oct 11 '11