Skip to content

feat(costmap2d): add AsymmetricInflationLayer costmap plugin for path-aware lane-keeping (backport #6118 & #6487) - #6689

Merged
SteveMacenski merged 2 commits into
ros-navigation:kiltedfrom
Duatic:feat/asymmetric-inflation-layer-kilted
Oct 27, 2026
Merged

SteveMacenski merged 2 commits into
ros-navigation:kiltedfrom
Duatic:feat/asymmetric-inflation-layer-kilted

Conversation

@mbloechli

Copy link
Copy Markdown
Contributor

Basic Info

Info Please fill out this column
Ticket(s) this addresses #6109
Primary OS tested on containerized Ubuntu 24.04
Robotic platform tested on No, testing was done inside loopback
Does this PR contain AI generated software? I used claude to prepare the backport. I proofread and tested it myself
Was this PR description generated by AI software? No

Description of contribution in a few bullet points


For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists
  • Should this be backported to current distributions? If so, tag with backport-*.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-23T20:03:19.487371Z
We couldn’t complete this review. Comment @codex review to try again.
669b384 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mergify

mergify Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

@mbloechli, all pull requests must be targeted towards the main development branch.
Once merged into main, it is possible to backport to @kilted, but it must be in main
to have these changes reflected into new distributions.

mbloechli and others added 2 commits October 23, 2026 22:03
Backport of ros-navigation#6118. Upstream builds the layer on the distance transform
InflationLayer from ros-navigation#5933, which Kilted does not have, so the layer is
ported onto Kilted's InflationLayer instead, as in the Jazzy backport:

* Pass 1 uses Kilted's InflationLayer::updateCosts for the symmetric
  baseline. Pass 2 matches upstream and uses distance_transform.hpp, taken
  unchanged from ros-navigation#5933. Nothing else from ros-navigation#5933 is backported, so
  Kilted's InflationLayer keeps its implementation and class layout.
* distance_transform.hpp needs Eigen, so Eigen3 is added as a dependency
  of the layers library and exported, as ros-navigation#5933 does upstream.
* Parameters are declared with Layer::declareParameter, and a single
  on-set callback validates and applies them, as in Kilted's other layers.
* num_threads and the OpenMP loop are dropped, since Kilted builds the
  layers without OpenMP.
* Includes the null check on the first path message from ros-navigation#6281.
* The benchmark is dropped, as Kilted has no costmap benchmark suite.

The tests follow the same changes: nav2_util::LifecycleNode, no
activate, deactivate or num_threads cases, a new case for rejecting
negative parameters and one for resolving plan_topic.

(cherry picked from commit 6a8161e)
Signed-off-by: mbloechli <[email protected]>
Backport of ros-navigation#6487. The integration tests initialised and shut down rclcpp
from a global fixture, which ran at process exit and hung under Zenoh.
main() now owns rclcpp::init and rclcpp::shutdown, and the fixture's
TearDown releases the layer, costmap, TF buffer and node first.

Resolved against Kilted's nav2_util::LifecycleNode and tf2_ros::Buffer
members.

(cherry picked from commit f31c7f4)
Signed-off-by: mbloechli <[email protected]>
@mbloechli
mbloechli force-pushed the feat/asymmetric-inflation-layer-kilted branch from 669b384 to 84ad1e1 Compare October 23, 2026 20:03
@mbloechli mbloechli changed the title feat(costmap2d): add AsymmetricInflationLayer costmap plugin for path-aware lane-keeping (backport #6118 & #6487)- #6688 feat(costmap2d): add AsymmetricInflationLayer costmap plugin for path-aware lane-keeping (backport #6118 & #6487) Oct 23, 2026
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.13793% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
..._costmap_2d/plugins/asymmetric_inflation_layer.cpp 99.01% 3 Missing ⚠️
Files with missing lines Coverage Δ
...ude/nav2_costmap_2d/asymmetric_inflation_layer.hpp 100.00% <100.00%> (ø)
..._2d/include/nav2_costmap_2d/distance_transform.hpp 100.00% <100.00%> (ø)
..._costmap_2d/plugins/asymmetric_inflation_layer.cpp 99.01% <99.01%> (ø)

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SteveMacenski
SteveMacenski merged commit f3ead29 into ros-navigation:kilted Oct 27, 2026
13 of 14 checks passed
@mbloechli
mbloechli deleted the feat/asymmetric-inflation-layer-kilted branch November 18, 2026 11:25
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.

3 participants