ArduPilot / ArduPilot/ardupilot

Rover: Dijkastras should handle case where vehicle is started outside of fence

Open
#31,399 1 comment 2 reactions 0 assignees View on GitHub
Enhancement Rover Safety
Dominant language
C++
Stars
15.9k
Forks
21.4k
Avg merge
3d 17h
Merged PRs (30d)
119

Description

Rover can end up outside the fence without the user doing anything particularly bad:

- create a polygon fence
- set LOIT_RADIUS to 10m
- place a waypoint with a 60s delay closer than 10m to the fence boundary

When the rover loiters at the waypoint it may stray outside the fence, RTL will trigger but the vehicle will not be able to return

To resolve this we should enhance Dijkstras so that it handles the case where the vehicle starts outside the fence

Contributor guide

Open the contributing guide

Research direction

Start by locating the Dijkstras implementation and the RTL fence-handling entry point. Reproduce the described rover case with a polygon fence, LOIT_RADIUS of 10m, and a delayed waypoint near the boundary, then trace how routing behaves when the vehicle starts outside the fence. Done means RTL can produce a valid return path in that situation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
robotics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.