Repository navigation
Use Fields2Cover v2.1.1 for the pieces it now provides (humble) - #166
Merged
Conversation
Fields2Cover v2.1.1 carries the fixes and APIs this package used to work around: HL_SWATH densification, the corridor headland and the degenerate-polygon guard. Adapted for humble: humble-v2 only pins Fields2Cover in deps.repos, so only its version changes; the README note is updated to match. (cherry picked from commit 2ef1796, part of open-navigation#162) Signed-off-by: u33549 <[email protected]>
The server only calls the Field overload; the F2CCells one had no callers left after the headland-first decomposition rework. (cherry picked from commit 93915e2, part of open-navigation#162) Signed-off-by: u33549 <[email protected]>
CorridorHL finds the borders cells really share and carves the corridor from the smaller cell. route_headland_width is now the total corridor width; the previous code could carve it from both cells, or miss a partially shared border. (cherry picked from commit 8ecb2f4, part of open-navigation#162) Also drops the sliver filter Fields2Cover no longer needs: CorridorHL already removes the zero-width pieces carving leaves, and the degenerate-polygon crash the filter guarded against is fixed upstream. (cherry picked from commit a4f3a87, part of open-navigation#162) Signed-off-by: u33549 <[email protected]>
It has had no effect since multi-cell TSP routing moved to a per-cell solve; the threshold it set is no longer read. (cherry picked from commit 852e0f1, part of open-navigation#162) Signed-off-by: u33549 <[email protected]>
With Fields2Cover v2 a straight swath is a single path state, so taking the end from that state's start point gave every swath start == end. Use PathState::atEnd() instead. Adapted for humble: only the swath end test is added; the HL_SWATH and headland perimeter tests next to it on main belong to open-navigation#141, which is not on humble. (cherry picked from commit af70ccf, part of open-navigation#162) Signed-off-by: u33549 <[email protected]>
The densification step is in meters, but it ran after the path was converted to the GPS frame, so swath lengths were in degrees and no state was ever split. Adapted for humble: the densify call takes main's zero-step guard (pt_dist <= 0 falls back to 0.1 m). On main it came with the headland driving change, which is not on humble. (cherry picked from commit e7eb93b, part of open-navigation#162) Signed-off-by: u33549 <[email protected]>
SteveMacenski
approved these changes
Nov 27, 2026
This was referenced Nov 27, 2026
u33549
deleted the
Feature/umutc/f2c-enhancements-humble-v2/use-fields2cover-2.1.1
branch
November 30, 2026 10:20
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.
Ports #162 to
humble-v2: pins Fields2Cover to v2.1.1 and drops the downstream code that v2.1.1 now provides.Each commit is a cherry-pick of a #162 commit and notes any humble adaptation in its message.
deps.reposhere only pins Fields2Cover; README note updatedmainbelong to #141main's zero-step guard (pt_dist <= 0falls back to 0.1 m), whichmaingot with #141"Let Fields2Cover densify headland passes" from #162 is left out: it only changes #141 code, which is not on humble.
Testing
colcon testin a humble container with Fields2Cover v2.1.1 built from source, as CI does: 387 tests, 0 errors, 0 failures. The only skipped tests are cppcheck.main(also Fields2Cover v2.1.1) on the same 31 coverage/row scenarios: identical in every scenario that does not depend on Support non-TSP route modes with field decomposition #145. The rest differ only where Support non-TSP route modes with field decomposition #145 applies (non-TSP routes on decomposed fields, and which route connections the path keeps); Support non-TSP route modes with field decomposition #145 follows as the next PR.humble-v2matchmain's behaviour: swath end points in the coverage path message are now the real swath ends, GPS paths are densified in meters, and the single-digit UTM zone crash is gone (Fields2Cover v2.1.x).