-
Notifications
You must be signed in to change notification settings - Fork 37
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
[ament_index] Should fix / simplify injection of per-package AMENT_PREFIX_PATH
#270
Comments
AMENT_PREFIX_PATH
AMENT_PREFIX_PATH
Shane, can you provide a suggestion for the simplest route to success? Is there a way we can be more selective with what paths we provide? Once you provide that, either Aditya or I can execute on it. |
I'd be happy to! The archive we're using at the moment is an isolated workspace. This means every package has a unique install location (usually The only way to get a single
Right now the generated However, I'm not aware of any performance issues with regards to long values of |
Constraining the archive type does sound like an easier solution, but my ideal is that we need not constrain things this way. I think going the However, given that #133 landed, maybe it's not too hard? |
Instead of thinking this as a constraint on the archive type, I think it would be fair to call it a choice of the type of workspace Drake-ROS uses by default. I think users are already free to use either a merged or isolated workspace with Drake-ROS today.
Making each ROS package in the generated If the metric for "better" is runtime performance, I'm not aware of any significant performance degradation with long values of |
If the workspace is merged and should effectively resolve to a shorter At this point, the maximal case (depending on all packages) should yield a path list whose size is Does that make sense? |
Yes, I think using a merged workspace is the best option for getting shorter values of
I don't understand. What is it the |
Ah, sorry - meant that |
Ah, are you saying that if there are two If so, maybe we could do that by making this a set (or is depset the right bazel datastructure?):
|
I don't understand why we inject per-package
AMENT_PREFIX_PATH
.Can we simplify and report as few paths as possible, if
ament_index
recurses? (We know Drake'sPackageMap
does)For example, in #269, I only depend on the data for
rviz_default_plugins
:drake-ros/drake_ros_examples/BUILD.bazel
Lines 23 to 31 in 543402f
However, if I print out
os.environ["AMENT_PREFIX_PATH"]
, I see all of the packages listed.For
PackageMap
, I see the following slew of errors:Assigning @sloretz for disposition, \cc @adityapande-1995
FYI @adeeb10abbas @jwnimmer-tri
The text was updated successfully, but these errors were encountered: