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

Revision history [back]

click to hide/show revision 1
initial version

Currently you cannot, and in general I think it's a flawed assumption. In the future we might pass some command line arguments to node's loaded as components, but in general nodes loaded as components are not necessarily ever given command line arguments. You can just make a service call to a component container and then there are no command line arguments associated with that node.

In stead, I'd recommend using a ROS parameter for that input, that way it can be passed as a command line argument or as a parameter when loading via a ROS service call.

Currently you cannot, and in general I think it's a flawed assumption. assumption to think that nodes will always have access to command line arguments.

In the future we might pass some add a way to expose the command line arguments to node's nodes loaded as components, components (when it makes sense), but in general nodes loaded as components are not necessarily ever given command line arguments. You can just make a service call to a component container in order to load a node and then there are no command line arguments associated with that node.

In stead, Instead, I'd recommend using a ROS parameter for that input, that way it can be passed as a command line argument or as a parameter when loading via a ROS service call.