-
Notifications
You must be signed in to change notification settings - Fork 52
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
Stricter filter finding strategy? #14
Comments
The section you linked to which does the promiscuous search was added for backwards compatibility 7 years ago. f7a402c I'd suggest officially deprecating it for lunar and removing it in the future. |
It's actually had |
(one downside being this will require branching this for lunar, unless we want to check the ros distro in the code) |
Good point. We can definitely move ahead on removing it. It's a very low traffic repo so forking it for this is fine. I've created a |
Thank you for taking care of this.
Personally I would prefer the "exact match without the package prefix" solution though,
because it requires no user to update anything.
As we are talking about ROS-l though, all proposed solutions are valid.
|
Fixed in #15 |
As described by @v4n here, there are some pitfalls to the current filter finding strategy. Currently if there is no package name specified for a filter in the yaml, then the first filter with the specified string anywhere in its name is chosen:
filters/include/filters/filter_chain.h
Line 202 in 7664bef
That does output a warning, but given that it can create some really subtle errors when the wrong filter is chosen, it might be better if it actually errored out. For better or worse, many robots have lots of warnings output by various packages, and one more can be easily missed. I can think of a few possible solutions (these would probably only be applied in lunar and later ROS distros):
@tfoote @v4hn what do you guys think?
The text was updated successfully, but these errors were encountered: