Skip to content

Use the rest of Fields2Cover v2.1.1 (humble) - #173

Merged
SteveMacenski merged 3 commits into
open-navigation:humble-v2from
u33549:Feature/umutc/f2c-enhancements-humble-v2/use-rest-of-f2c-211
Nov 30, 2026
Merged

SteveMacenski merged 3 commits into
open-navigation:humble-v2from
u33549:Feature/umutc/f2c-enhancements-humble-v2/use-rest-of-f2c-211

Conversation

@u33549

@u33549 u33549 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Ports #171 to humble-v2: drops the local copies of connection planning, route reversal and two guards that Fields2Cover v2.1.1 now provides. Addresses the sharp corners reported in #168 on humble too.

Each commit is a cherry-pick of a #171 commit and notes any humble adaptation in its message.

Commit Local code it removes on humble Replaced by
Let Fields2Cover plan the swath connections PathGenerator::assemblePath and appendConnection (#137, with the 1.3 length-ratio rule) PathPlanning::planPath(robot, route, turn) (Fields2Cover/Fields2Cover#234)
Reverse cell routes with Fields2Cover's Route::reverse reversedRoute, reversedConnection (#137) Route::reverse (Fields2Cover/Fields2Cover#233)
Drop guards Fields2Cover 2.1.1 no longer needs the pair_cells.size() > 0 check in the bridge, angDiff lambda (#137) Fields2Cover/Fields2Cover#239; F2CPoint::getAngleDiffAbs

The #145 parts of #171 (routeThroughCell, distanceToSegment, the deviation rule) are not on humble and are left out.

Testing

Fields2Cover 2.1.1 follows a connection track and rounds its corners
(Fields2Cover#234). The local appendConnection drove a detour verbatim,
turning 90 degrees at every corner. Use F2C's route planPath instead.

Adapted for humble: the connection handling removed here is open-navigation#137's, with its 1.3 length-ratio rule; the deviation rule and distanceToSegment from open-navigation#145 are not on humble.

(cherry picked from commit 5b95534, part of open-navigation#171)
Signed-off-by: u33549 <[email protected]>
Adapted for humble: the anonymous namespace held only these two helpers here, so it goes too.

(cherry picked from commit 2909e11, part of open-navigation#171)
Signed-off-by: u33549 <[email protected]>
shortestPath returns an empty path for a non-node endpoint instead of
throwing, and createShortestGraph leaves out swath ends outside every
cell (Fields2Cover#239). Use F2CPoint::getAngleDiffAbs for the heading
cost.

Adapted for humble: the bridge guard here was the earlier pair_cells.size() > 0 check (the two-cell check came with open-navigation#145). The per-pair try/catch in routeThroughCell is open-navigation#145 code and is not on humble.

(cherry picked from commit 4fd8f6b, part of open-navigation#171)
Signed-off-by: u33549 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 21:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@u33549

u33549 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Is there any easy way to port it to other versions? It can sometimes be a little annoying to have to create PRs for other versions after every change.

@u33549

u33549 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Also lyrical bacport is ready its just wait for merge #170

@u33549

u33549 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Two more things while we are here.

  1. Where to document the new features. Decomposition, headland-first routing, per-cell TSP and the other options added since Add field decomposition (trapezoidal / boustrophedon) with HL_SWATH handling #113 are not described anywhere yet; the README still covers only the original goal fields. Would you prefer them in the README, or on a coverage page in the Nav2 docs with the README linking to it?

  2. Fields2Cover status. With Use the rest of Fields2Cover v2.1.1 #171 and its ports, every v2 branch is on par with Fields2Cover v2.1.1. I think this is a good point to pause new features here and wait for the next Fields2Cover release, which I am working on upstream in the meantime. The Fields2Cover 1.2.1 branches (humble, iron, jazzy, kilted) are far behind by now, so I think it also makes sense to mark them as no longer supported.

Once the documentation is in place, it would be great to announce all of this with a post.

@SteveMacenski
SteveMacenski merged commit b5b7140 into open-navigation:humble-v2 Nov 30, 2026
9 checks passed
@u33549
u33549 deleted the Feature/umutc/f2c-enhancements-humble-v2/use-rest-of-f2c-211 branch November 30, 2026 10:20
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