Repository navigation
Carve route corridors only between adjacent decomposed cells (jazzy) - #142
Merged
SteveMacenski merged 1 commit intoJul 27, 2026
Conversation
Decomposition removes the field headland once before decomposing; the per-sub-cell second headland is dropped so swaths reach the outer field headland instead of leaving a double-wide gap. A new route_headland_width goal field (0 = operation width) sets the corridor carved strictly on the borders that two cells actually share: an edge is carved only when both endpoints and its midpoint lie on a neighbor's border, so edges facing a concave void or the outer boundary keep their single headland. The corridor is built by buffering the shared edge as a line (numerically robust) and differencing it out; sub-cells below a minimum area are dropped so degenerate slivers never reach F2C's unchecked OGR casts.
SteveMacenski
approved these changes
Jul 27, 2026
u33549
deleted the
Feature/umutc/f2c-enhancements-jazzy-v2/decomp-route-corridors
branch
August 1, 2026 11:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Jazzy port of #135 (Rolling). Fixes a double-headland gap between decomposed
cells. Behavior-preserving unless the field is decomposed with a headland.
The bug: when a field is decomposed with a headland, the headland was being
applied twice. The field headland is already removed once before decomposing;
then applying
generateHeadlandsto every sub-cell insets a headland on allof that cell's borders again — including the borders shared with a neighbor. Two
adjacent cells each carving a headland on the same shared edge leaves a
double-width gap between them, and outer edges get a redundant second headland
stacked on the one already removed at the field level.
The fix:
generateHeadlandsBetweenCellscarves a corridor only on theborders two cells actually share. An edge is carved only when both its endpoints
and its midpoint lie on a neighbor cell's border, so shared borders get exactly
one corridor and edges facing the outer boundary or a void keep their single,
already-correct headland.
route_headland_width(default0.0= operationwidth) sets the corridor width.
Port notes
Straight port of the Rolling change — the five touched files carry the exact
same hunks as #135, with no adaptation needed. The Jazzy base differs from
Rolling only outside the changed regions (
nav2_utilvsnav2_ros_common,nav2_util::LifecycleNode/CallbackReturn, the pre-create_action_serveraction server setup,
tf2/utils.h), and those differences are preserved as-is.