-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Inconsistent RTT_COMPONENT_PATH overlay semantics #161
Comments
This is a known problem and RTT can simply not deal with overlay workspaces that provide the same component types or plugins with the same name at the moment. I somehow remember the discussion back in 2014 about whether to reverse paths in the
Last but not least the prefer overlay vs. prefer underlay behavior should be compatible with the build system's and the linker's notion of variables like The import process itself in intermingled (e.g. the ComponentLoader calls into the PluginLoader singleton during the process of importing a package), so that reversing the paths in some cases only is also not an option. You could consider any of the above behaviors as a bug, but it has been decided to not break the pre-catkin behavior of RTT only to fully support catkin overlays. Probably a clean rewrite of the PluginLoader and ComponentLoader classes, which contain lot of redundant code for historic reasons, and a previous design phase would be the best viable option here. |
But also stop the search once a good one is found. |
Just fell on the exact same issue. Hope a clean/consistent solution can be found some day. |
It would be an option to simply load a package from the first path found in ComponentLoader::importInstalledPackage(). This should fix the overlay semantics of the |
can confirm issue |
|
Fixed in #288. |
When I import a component from an overlay workspace it always takes the last on the ROS_PACKAGE_PATH list. The order of priority is reversed !
if I load component A (
import("A")
) it will output :This seems to be the culprit.
The text was updated successfully, but these errors were encountered: