Skip to content

Switch to system version of octomap. - #2881

Merged
sjahr merged 2 commits into
moveit:mainfrom
clalancette:clalancette/switch-to-system-octomap
Jul 8, 2024
Merged

sjahr merged 2 commits into
moveit:mainfrom
clalancette:clalancette/switch-to-system-octomap

Conversation

@clalancette

Copy link
Copy Markdown
Contributor

Description

This is so that we have a consistent ABI between these packages and anything else in the system that depends on octomap. We'll eventually be removing the ROS-provided version of octomap to make sure we don't have these problems in the future.

This should solve the issue in ros/rosdistro#41622 , and was enabled by the merging of ros/rosdistro#41623

Checklist

  • [N/A] Required by CI: Code is auto formatted using clang-format
  • [N/A] Extend the tutorials / documentation reference
  • [N/A] Document API changes relevant to the user in the MIGRATION.md notes
  • [N/A] Create tests, which fail without this PR reference
  • [N/A] Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

This is so that we have a consistent ABI between these
packages and anything else in the system that depends
on octomap.  We'll eventually be removing the ROS-provided
version of octomap to make sure we don't have these problems
in the future.

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette

Copy link
Copy Markdown
Contributor Author

Friendly ping on this one; we are going to shortly remove octomap from Rolling, and that will cause this package to fail to build without this patch.

@sjahr sjahr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sjahr
sjahr merged commit 42c5a29 into moveit:main Jul 8, 2024
@clalancette
clalancette deleted the clalancette/switch-to-system-octomap branch July 8, 2024 19:17
nbbrooks added a commit to nbbrooks/moveit2 that referenced this pull request Jun 16, 2026
Ubuntu Resolute ships liboctomap-dev 1.10.0; the existing <1.10.0 upper
bound rejects it and blocks moveit_core from configuring on Resolute.
Widen to <2.0.0 — any 1.x is acceptable, with a guard against a
hypothetical breaking 2.0.

The original narrow pin in moveit#2862 was a defensive workaround
for an ABI skew when moveit_core pulled in ros-*-octomap (1.10) alongside
system liboctomap-dev (1.9.7) via libfcl-dev. That skew can no longer be
introduced by moveit2's own deps: PR moveit#2881 switched moveit_core and
moveit_ros/occupancy_map_monitor to depend directly on liboctomap-dev,
and Kilted/Rolling no longer publish ros-*-octomap at all (only Humble
and Jazzy still do).

Affected files: moveit_core/CMakeLists.txt,
moveit_ros/occupancy_map_monitor/CMakeLists.txt.

Refs: moveit#2862, moveit#2881.
nbbrooks added a commit to nbbrooks/moveit2 that referenced this pull request Jun 16, 2026
moveit2 already treats octomap like any other system dependency since
PR moveit#2881 (which switched moveit_core / moveit_ros/occupancy_map_monitor
from <depend>octomap</depend> to <depend>liboctomap-dev</depend>). The
1.9.7...<1.10.0 range in CMakeLists.txt was the leftover artifact of
moveit#2862's defensive workaround for an ABI skew that
moveit2's own deps no longer create. The range also blocks moveit_core
from configuring on Ubuntu Resolute, which ships liboctomap-dev 1.10.

Drop the range entirely. find_package(octomap REQUIRED) matches the
convention used by fcl, Eigen3, pluginlib, and the rest of moveit_core.

Refs: moveit#2862, moveit#2881.
nbbrooks added a commit that referenced this pull request Jun 16, 2026
moveit2 already treats octomap like any other system dependency since
PR #2881 (which switched moveit_core / moveit_ros/occupancy_map_monitor
from <depend>octomap</depend> to <depend>liboctomap-dev</depend>). The
1.9.7...<1.10.0 range in CMakeLists.txt was the leftover artifact of
#2862's defensive workaround for an ABI skew that
moveit2's own deps no longer create. The range also blocks moveit_core
from configuring on Ubuntu Resolute, which ships liboctomap-dev 1.10.

Drop the range entirely. find_package(octomap REQUIRED) matches the
convention used by fcl, Eigen3, pluginlib, and the rest of moveit_core.

Refs: #2862, #2881.
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