Repository navigation
Use the rest of Fields2Cover v2.1.1 (humble) - #173
Conversation
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]>
|
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. |
|
Also lyrical bacport is ready its just wait for merge #170 |
|
Two more things while we are here.
Once the documentation is in place, it would be great to announce all of this with a post. |
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.
PathGenerator::assemblePathandappendConnection(#137, with the 1.3 length-ratio rule)PathPlanning::planPath(robot, route, turn)(Fields2Cover/Fields2Cover#234)reversedRoute,reversedConnection(#137)Route::reverse(Fields2Cover/Fields2Cover#233)pair_cells.size() > 0check in the bridge,angDifflambda (#137)F2CPoint::getAngleDiffAbsThe #145 parts of #171 (
routeThroughCell,distanceToSegment, the deviation rule) are not on humble and are left out.Testing
colcon testin a humble container with Fields2Cover v2.1.1 built from source: 388 tests, 0 errors, 0 failures, including the newTestpathGenerationConnectionCorners.mainafter Use the rest of Fields2Cover v2.1.1 #171 on the same 31 scenarios: identical in every scenario that does not depend on Support non-TSP route modes with field decomposition #145 or Add optional headland driving (perimeter loop or full band coverage) #141, except one TSP run where six turns are the mirror image ofmain's. Fields2Cover picks between two equal-length Dubins loops and the tie breaks differently on jammy; same start, end and length.