Skip to content
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

Action for runtime modifiable parameters in YAML config #803

Open
mhubii opened this issue Oct 22, 2024 · 0 comments
Open

Action for runtime modifiable parameters in YAML config #803

mhubii opened this issue Oct 22, 2024 · 0 comments

Comments

@mhubii
Copy link

mhubii commented Oct 22, 2024

Hi there, not very certain where to raise this issue. Please redirect in case.

To my best understanding, parameters, as specified in e.g. yaml, are fixed

my_node:
  ros__parameters:
    key: value

i.e. value cannot be changed easily.

There are suggestions to parse the yaml file inside launch, then overwrite. However, this seems quite cumbersome yet a frequent task.

I don't understand the inner workings well enough, but there exist libraries that allow for runtime parameter modification / addition (https://hydra.cc/docs/intro/).

I see that dynamically adding parameters might not work in C++, but is there an Action that would allow modification during launch?

yaml_config = "path_to_config"
modified_yaml_parameters = YAMLModify(yaml_config, {"my_node.key": LaunchConfiguration("key")})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant