Skip to content
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

HACK: Allow resolution of current project's path at build time #326

Merged
merged 3 commits into from
Oct 31, 2023

Conversation

rhaschke
Copy link
Contributor

@rhaschke rhaschke commented Jul 4, 2023

The cmake function xacro_add_files runs xacro at build time. To resolve $(find current_package) within xacro files, xacro relies on a properly configured ament package index. However, this index is only created after building, during installation.
By manually prepending AMENT_PREFIX_PATH with the current project's ament_cmake_index in the build folder and symlinking the source folder into the corresponding share folder, I was able to work around this shortcoming. However, a fix in https://github.com/ament/ament_cmake would be definitely better.

Partially fixes #325.
Resolution of packages during xacro-dependency lookup still doesn't work.

@rhaschke rhaschke marked this pull request as ready for review October 31, 2023 09:34
@rhaschke rhaschke merged commit ce628cc into ros:ros2 Oct 31, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants