What would be the best way to implementCLI ROS Name remapping in the library? #58
Mohamedemad4
started this conversation in
General
Replies: 1 comment
-
implemented by #61 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
Remapping arguments is one of the features that make ROS packages reusable and flexible.
Currently, this library doesn't support CLI argument remapping
Possible Implementation(s)
modify the code for New* (publisher,subscriber,Node etc..) to read command-line arguments that match the "names" supplied to it and replace them as needed
something like
if CheckOsArgsForRemap(conf.Name){ conf.Name = GetRemappedNameFromOsArgs(conf.Name) }
But this feels really manual since it will have to go into:
and I probably missed something.
This approach doesn't feel correct and I was wondering if anyone had a better idea to implement the remapping behavior.
@aler9
Beta Was this translation helpful? Give feedback.
All reactions