-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Simplify FindResource logic, if possible #7821
Comments
Both in #7774 and this issue, I don't understand what the difficulty / problem / complaint is getting at. Is the API contract unclear? Are the semantics unhelpful for certain use cases? Is the implementation difficult to follow? Maybe you can swing by and try to explain in person. |
I agree with Eric that the API could be improved. It is not that it is unclear from reading the documentation, but that it is more complex than it should be, and that makes it more difficult to maintain and debug.
|
Per f2f with @jwnimmer-tri, some additional thoughts:
The deprecation portions are lower priority; adding more info the error message seems like some low-hanging fruit to address the root problem (debugging when things go wrong). @fbudin69500, can I ask for your thoughts on these?
This may not be relevant to future solutions, but just to check, by "initialization" do you mean global-scope initialization, or just
Can I ask what "this" is? |
@EricCousineau-TRI could you update the status on this issue? Thanks! |
Updated - thanks! |
In addressing / creating #11111, some add'l complaints: We should also just ditch an user mutation of search paths. They should always work, period, and should never change. Any user delegation should happen as part of ROS package path-like URIs (#10531). |
@EricCousineau-TRI Since the above was written up, we've submitted various cleanups like #11261. Is there anything still left to do here, or can we close it? (Or at least, make it more specific.) I don't think we can cull any more features. Maybe you still want some more error message additions, though those are also much improved already.
Done in #11841.
Now that we have |
Yup, everything is addressed. Still wish that Closing - thanks for the ping! |
Right now, the logic in
FindResource
seems relatively complex. See #7774 for more information.Given that we now have the ability to get the root directory from the shared library, it seems like the logic could be stripped down.
It'd be nice if the following could be done:
Granted, these suggestions may skip over some details, such as the motivating points for some of the things (like persistent candidate directories, etc.).
The text was updated successfully, but these errors were encountered: