-
Notifications
You must be signed in to change notification settings - Fork 285
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
Support colcon workspace with bullet and ode #1389
Conversation
Unfortunately there are some breaking changes that would be required for DART/dartsim to comply with the assumptions made by colcon's package information inference rules. I think it'll make sense to put these changes into dartsim-7, but the changes could pose significant problems for current users of DART/dartsim-6. Instead of relying on colcon's inference rules, maybe we should explicitly put a |
a |
Colcon also has a mechanism for providing metadata so that you don't necessarily have to add It would be reasonable to add the information there as well: https://github.com/colcon/colcon-metadata-repository |
Here is the content of an equivalent
|
927041e
to
c6a1696
Compare
I reverted the changes to CMakeLists.txt and package.xml and added a |
I guess we could add the |
@@ -0,0 +1,4 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this file support comments in the file? If so, it'd be great to leave a brief comment how this file is used for.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's YAML, so comments prefixed with #
are acceptable here.
Codecov Report
@@ Coverage Diff @@
## master #1389 +/- ##
=======================================
Coverage 57.27% 57.27%
=======================================
Files 366 366
Lines 27432 27432
=======================================
Hits 15711 15711
Misses 11721 11721 |
* colcon.pkg: DART depend on ODE, BULLET_PHYSICS * Add file header to colcon.pkg
We have been using colcon to build gazebo and ignition packages from source in a workspace, similar to using catkin-tools with a catkin workspace. A cool feature of colcon is that it can automatically identify cmake dependencies based on the cmake project name and build packages in the workspace in the correct order without creating
package.xml
files.If a
package.xml
file is present in a package, it will use that instead of the automatic detection, so you can build a mixed workspace of plain cmake and ROS1 or ROS2 packages.When attempting to use colcon in a workspace with ign-physics, dartsim, bullet, and ODE, it was not properly identifying the dependencies. I believe the following two steps are necessary:
BULLET_PHYSICS
andODE
to the dartsim package.xml fileDART
to match the generatedDARTConfig.cmake
I'm not sure if there are cpack / rosdistro / rosdep implications of changing these things, but I think it helps with colcon. Here's a workspace file for testing:
cc @mxgrey @jslee02 @azeey
Before creating a pull request
clang-format
Before merging a pull request
CHANGELOG.md