-
Notifications
You must be signed in to change notification settings - Fork 278
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
Files installed to CATKIN_PACKAGE_SHARE_DESTINATION do not appear in devel/share #1099
Comments
Files are intentionally not being copied into the You should be able to access the resources from the |
Thanks @dirk-thomas , I've updated the issue/question. |
I am not sure if you have seen the ROS support guidelines but we kindly ask to raise questions like this on answers.ros.org instead. The rational for asking all kind of questions in a single place is:
Therefore I will close this ticket here for now. If you have asked your question on answers.ros.org please feel free to add a link to the question to this ticket so that future readers can find the related question. |
@dirk-thomas Thank you for your reply. I did raise this as an issue, not a question. I think it's inconsistent that not all resources are copied to the devel space. The issue is that during development the layout of files is different from the layout after installation. I'll discuss this somewhere else then. Again, thanks for your time. |
I answered this specific aspect above: Files are intentionally not being copied into the
You can layout the source space in a way that it is possible to make the lookup the from devel space as well as install space the same. If the |
See https://answers.ros.org/question/354779/locate-catkin_package_share_destination-in-devel-space/ |
I specify additional resources to install:
They do appear in
share/my_pkg/resources
when I install the package.They don't, however, appear in the
devel
space during development.That is,
devel/share/mypkg
does not containresources
.How to go about this? I would like to access these resources in a predictable way both during development and after installation.
Edit after comment:
An executable
my_node
needs some binary resource files during run-time. I have these files in a/resources
directory under my package root.I specified the
install(...)
command above to have them installed.During development, I would like to use these resources too. So it would be wonderful to have a method
getResourcesDir()
that would return me the path to the corresponding folder. That is,/opt/ros/melodic/share/my_pkg/resources
or$SOURCE_PATH/my_pkg/resources
, depending on whether the pkg is installed or not.The text was updated successfully, but these errors were encountered: