feat(geofence): add segment geometry helpers - #28758
Open
JonasPerolini wants to merge 2 commits into
Open
JonasPerolini wants to merge 2 commits into
JonasPerolini wants to merge 2 commits into
Conversation
JonasPerolini
added this pull request to stack #28763
September 18, 2026 15:11
JonasPerolini
force-pushed
the
gf-lines
branch
from
September 18, 2026 15:36
3ff3c01 to
62e565c
Compare
Contributor
|
Claude review on behalf of @dakejahl nit, |
added 2 commits
September 22, 2026 08:47
Signed-off-by: jonas <jonas.perolini@rigi.tech>
JonasPerolini
force-pushed
the
gf-lines
branch
from
September 22, 2026 10:54
62e565c to
e63e3be
Compare
Contributor
Author
Contributor
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: 0 byte (0 %)]px4_fmu-v6x [Total VM Diff: 8 byte (0 %)]Updated: 2026-09-22T11:05:16 |
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.
The mission checker validates individual waypoints but misses geofence breaches between them. This stack of 5 PRs adds checks at mission upload to catch those breaches before flight. To test the complete feature, use the last PR in this stack: gf-jump.
Algorithm:
Note: The implementation is differemt to the GF-aware RTL planner. The RTL planner’s checks are designed to find routes around fences. They use prepared polygons in local coordinates and allow paths to touch corners or follow their edges. Mission validation uses a simpler rule: once the starting point is valid, touching any fence boundary is a breach. This lets us check polygons directly from the existing fence cache. It avoids adding another projected fence (in local coordinates) or changing the RTL planner’s boundary rules.
This PR adds segment intersection and point-to-segment distance helpers for mission geofence checks. No behavior change, only lib.