-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't require node name to be specified if parameter dictionary passed to Node action #4
Comments
Is this something you think will be possible? If we can ever pass arguments over the command line I was assuming that we'd need to specify the node name as well. Put another way, anything you could pass over the command line should also be representable in the yaml file as well. So if you have "node-agnostic" parameters on the command line you could do the same in the yaml file. Or if you have parameters that only work if there's a single node in the executable (enforced somehow) then you could have an equivalent magic section in the yaml file. I don't think this (requiring that the node name is given when passing parameters too) will be a requirement that can be dropped ever unfortunately... For context, Lifecycle nodes require the node name and so does roslaunch from ROS 1 (in all cases). |
Not requiring the node name to be passed one day seems plausible to me. This is my reasoning:
If requiring that the node name be specified was a reasonable thing for |
The node namespace is always specified when launching a Node action (defaults to
/
), but the node name is optional.When parameters are passed to a Node action as a dictionary, they are written to a yaml file. Yaml files of parameters currently require the node name to be specified.
Because of this, if a dictionary of parameters is passed to a Node action, there is a requirement that the node name is also specified.
This requirement can be removed if parameters are passed individually on the command line to the node in a way that doesn't require the node's name (feature not implemented in rcl yet), or if yaml files are made to no longer require the node name.
The text was updated successfully, but these errors were encountered: