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

Mapped parameters can't refer to base class parameters #142

Open
bijoua29 opened this issue Aug 26, 2023 · 2 comments
Open

Mapped parameters can't refer to base class parameters #142

bijoua29 opened this issue Aug 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@bijoua29
Copy link

This is probably not a bug but a feature request. In any case, I had a situation where I had joints parameter defined in a base class. In the derived class, I needed to use a mapped parameter that referred to the base class joints parameters. This would not compile.. I got around it by re-declaring the same joints parameter in the derived class yaml file. This worked but is not ideal since the joints parameter is now declared in two places.

@tylerjw
Copy link
Contributor

tylerjw commented Aug 28, 2023

Yea, in some ways, this is a limitation of the parameter system in ROS 2. We could add features for this, but I'm unsure how to implement it. Currently, each generated parameter library is independent of others and there is no way to refer to another parameter library from a second one.

@tylerjw tylerjw added the enhancement New feature or request label Aug 28, 2023
@bijoua29
Copy link
Author

Yeah, I agree there doesn't seem to be an obvious way to implement this. I wonder if just some way of specifying an include path to the base class GPL library include in the yaml file might suffice. Obviously, there are multiple ways of this going wrong though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants