-
Notifications
You must be signed in to change notification settings - Fork 20
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
Example package.xml building with colcon-cargo? #5
Comments
colcon use different extensions to build different packages type. Extensions are tried according to their priority. If an extension identify a package, it will be used to build the package and extensions with less priority won't be triggered. In this case, I believe that colcon-ros has higher priority than colcon-cargo and colcon-ros identify any package containing a package.xml file as its own, so colcon-cargo is ignored when such a file is present (https://github.com/colcon/colcon-ros/blob/7e51402a233e44350d0e957524bba7f8746d6b1d/colcon_ros/package_identification/ros.py#L28). I think that the solution would be to add a new build_type, such as ament_cargo, to colcon-ros in order to correctly deal with ROS packages containing Rust code. |
That's what I was thinking as well, but I wasn't sure where to start. Is there a document that details the requirements for adding a new ament build type? The cc @dirk-thomas |
Same for The question is if a ROS-specific |
Could somebody elaborate? My reading of colcon/colcon-ros#24 was that separate extensions are preferred now. Context: I'm planning to rewrite a prototype for cargo support in colcon-ros into a separate extension. |
@nnmm separate extensions are the recommended way. See for example https://github.com/colcon/colcon-ros-grade which leverages https://github.com/colcon/colcon-grade to support |
I'm trying to write a pure Rust package and build it in a colcon workspace. However, I can't seem to add a basic package.xml without colcon thinking it somehow deals with Cmake:
Having the colcon-cargo extension installed, the cargo project seems to build fine without a package.xml but if I add a skeleton package.xml like so, I get the error above:
cc @lelongg
The text was updated successfully, but these errors were encountered: