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

Allow tesseract_collision plugins to be found by ROS2 packages #130

Conversation

schornakj
Copy link
Contributor

This is part of a workaround for an issue in ROS2 pluginlib (ros/pluginlib#161). Briefly, the ROS2 implementation of ClassLoader uses ament_index_cpp::get_package_prefix() when loading plugins, which makes it difficult to load plugins from non-ROS libraries since they aren't added to the AMENT_PREFIX_PATH environment variable and don't have some ROS2-specific config files in their package share directory.

This change solves the second of these problems by writing an empty file to ros2_ws/install/tesseract_collision/share/ament_index/resource_index/packages/tesseract_collision when the package is built.

I think that the first problem will need to be handled separately. So far I've been adding the path to the installed location of tesseract_collision to AMENT_PREFIX_PATH in my launch files.

@Levi-Armstrong Levi-Armstrong merged commit 117bdc2 into tesseract-robotics:master Oct 2, 2019
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