REP-136 compliance and compatibility with ROS1 & ROS2 using single branch#304
Conversation
This still doesn't seem to register itself in the ament index if built as a ros2 package. See #303 (comment) |
|
I am not very familiar with ament or ROS2 yet unfortunately - since this is a pure CMake package, is it expected to register itself? Is there another required change to add? |
|
Anything missing to finish this PR? |
|
Thanks for the ping! I spotted an erroneous duplicated dependency and removed that now. I also added a build for both ROS1 and ROS2 using Industrial-CI to see if this config passes and builds using catkin-tools/colcon. As for the registration of the package with the ament index, following ros-infrastructure/rosdep#724, we still need to create some extra conditionals or commands in the CMakeLists - do you have any insights or suggestions regarding this @ruffsl? |
|
The output of the new GitHub Actions CI can be seen here: https://github.com/wxmerkt/octomap/runs/1550182750 |
|
Hi guys, any change to merge it? |
|
I believe this is ready to be merged and it passed Industrial-CI for both ROS1 and ROS2. I have not tested it in ament workspace, though, so if a community member could provide insights if it works as intended in a ROS2 environment that would be great. |
|
This is great because it will make the code compilable under ROS1 and also ROS2. However, as @ruffsl mentioned, the packages will not be registered in the ament index. Installing a |
|
Does anyone know what's missing for a fix? |
|
Perhaps we could copy and include what is used by ompl |
|
@ruffsl Thank you very much for the pointer. I added a commit following the OMPL example. Could you please test if this fixes the observed issue? This way we could retire the |
5b1858c to
775850a
Compare
|
I haven't had time to test this, but you could try and build octomap from a colcon underlay in a https://github.com/ros-planning/geometric_shapes/tree/ros2 |
|
Thanks for preparing all this - v1.9.7 is out! |
In this PR, an exec_dependency on either
catkinorament_cmakeis added per REP-136. The package format is updated to v3 to make use ofconditionarguments. This allows to only maintain a singledevelbranch and effectively deprecateros2going forward. ROS1 and ROS2 can now usedevel.@ruffsl @mikaelarguedas can you please test if this works for you?
Alternative to #303