-
Notifications
You must be signed in to change notification settings - Fork 142
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
[launch_ros] add ability to pass parameters to Node actions #117
Comments
Multiple yaml files can be given on the command line. If two files specify a value for the same parameter then the value from the later file is used.
|
Cool thanks! |
Is this ticket complete now that #135 has been merged? |
nah, it didn't include passing parameters as dicts |
(which I'm working on now) |
Hi, ****/ Thanks. |
Hi @poonam1120, I think this question would be a better fit for https://answers.ros.org/questions/ . Many more people watch that site, so you're likely to get an answer quicker. Comments on closed issues often don't get responses because closed issues on github aren't very visible. |
Currently you can pass remapping arguments to Node as a
dict
, but to set parameters in a node from a launch file you need to pass a normal argument which points to an existing.yaml
file.To pass parameters via the launch file (without predefining them in an external
.yaml
file) will ultimately require the ability to pass parameters via the command line one at a time, which as of right now is not implemented yet.In the meantime, individually specified parameters in a launch file for a node could be written into a temporary
.yaml
file bylaunch
and then passed to the node, deleting the file after the node exits. However, I think this would step on a user specified parameter.yaml
file unless the node can take more than one right now (it was discussed, but I don't know off-hand if it was implemented). In either case, if launch also lets you specify one or more.yaml
files to be used as parameters (in addition to, and at the same time as, individually specified parameters for a node), then launch could just combine all of the yaml files and parameter kay-value pairs into a single.yaml
file, cascading them in order (overwriting keys that appear more than once, with last wins).It might look something like this:
The text was updated successfully, but these errors were encountered: