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
rosdep and ROS2 #660
Comments
Just a nipick about the terms and part involved: the build tool (like |
So what ament/ros2 mechanism should rosdep be using instead to find packages? |
ROS 2 uses the environment variable |
@dirk-thomas , what do you mean by "resource index"? Is this a file or something at the root of one of the paths listed in
|
The resource index is a file base storage under |
Thanks, that was very informative. def list_prefix_of_packages(prefixes):
return list_prefix_of_packages_by_resource('packages', prefixes) @dirk-thomas , I'm assuming you wouldn't want to rope in ament_package as a python dependency for rosdep. Would there be an existing implementation of the function above I could use for a PR? Or should I just use the template from ament_package as a pattern for extending rosdep's lookup? Are there any special considerations when looking up isolated packages as well? I see there is a After sourcing an isolated workspace, does the |
That is simply not possible.
The ament_index_* packages implement an API to access the resource index in C++ and Python. The same limitation applies. So they can only serve as a template to create your own function.
Correct.
I am not sure why you would need the order for something like |
I figured, just want to check if it had any cause to be a special case.
Ok, sounds good. I'll read through the rosdep code a bit more and try an open a PR. |
Please see: #699 |
It appears that
rosdep check
depends onROS_PACKAGE_PATH
, which is set by the ROS1 build system (catkin).The ROS2 build system (ament) does not set
ROS_PACKAGE_PATH
. The workaround is for the user to export (and update)ROS_PACKAGE_PATH
.Is the ROS2 behavior working-as-intended?
See also: https://answers.ros.org/question/315296/crystal-rosdep-cannot-find-all-required-resources/
Thanks.
The text was updated successfully, but these errors were encountered: