-
Notifications
You must be signed in to change notification settings - Fork 137
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
Support passing parameters as a dictionary #138
Conversation
Factor out test utility code
157909d
to
23496bd
Compare
def _create_params_file_from_dict(self, context, params): | ||
with NamedTemporaryFile(mode='w', prefix='launch_params_', delete=False) as h: | ||
param_file_path = h.name | ||
# TODO(dhood): clean up generated parameter files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the intention to merge this and follow up with a pull request to clean up the files or do you think we can do without it?
I know we talked about it before and I said it would be ok to not do that for now, but now I'm thinking we should really clean up after ourselves. What are your thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it's important also, was planning to leave it as followup to simplify reviewing of this PR. The tests are relying on the files being around atm so was going to also have an option to disable the cleanup.
I'm gonna wait for ros2/rcl#299 before I merge this so that it works for nodes in the root namespace. Will move this out of the review column. |
Closes #117
Requires ros2/rcl#299
The dictionary can be nested (to specify different groups of parameters) and can have substitutions at each level.
A yaml file is written following this structure. It always specifies the namespace and node name (requires ros2/rcl#299). Scoped out: deleting the file(s).
Design decisions: