ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Stay-out zones for geofencing

Open acetylcysteine opened this issue 13 years ago • 19 comments

It would be great if you could create a fence that instead of keeping you inside, kept you outside. For example, there is a huge tree in the middle of an open field. Create a radius and altitude fence around this tree so if you start flying into it the aircraft is redirected.

acetylcysteine avatar Jun 26 '13 13:06 acetylcysteine

I like this one. Keep me from climbing a 50 ft tree! "If it saves just 1 life, it would be worth it" LOL

goochpw avatar Sep 27 '13 00:09 goochpw

This is a very good feature to add. Will increase the safety of flights. It will be very useful to mark on the mission map no-fly zones (set with a radius and height or a polygon and height) to mark tall buildings, trees, antennas or other places.

aerodolphin avatar Feb 04 '15 00:02 aerodolphin

+1

FLYBYME avatar Feb 04 '15 04:02 FLYBYME

I agree! Is there any progress on this?

dscassid avatar Feb 20 '15 19:02 dscassid

I have an application where I would like autonomous flight over an area but would like to avoid pre-defined tall objects such as towers or particular trees. A "keep out" or exclusion zone would be sort of an inverse geofence, so if the Path between waypoint 1 and 2 were to intersect this zone, the autopilot would maintain distance and either follow the perimeter of the zone, or compute a more efficient route that avoids it entirely. Is anyone actively working on this? I may be able to help fund development of this feature.

k5njm avatar Mar 20 '15 01:03 k5njm

Sounds like a great feature On Mar 19, 2015 6:34 PM, "kd5ftn" [email protected] wrote:

I have an application where I would like autonomous flight over an area but would like to avoid pre-defined tall objects such as towers or particular trees. A "keep out" or exclusion zone would be sort of an inverse geofence, so if the Path between waypoint 1 and 2 were to intersect this zone, the autopilot would maintain distance and either follow the perimeter of the zone, or compute a more efficient route that avoids it entirely. Is anyone actively working on this? I may be able to help fund development of this feature.

— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/391#issuecomment-83844176.

magicrub avatar Mar 20 '15 02:03 magicrub

I'm tentatively targeting Copter-3.4 for this feature but no promises

rmackay9 avatar Oct 14 '15 01:10 rmackay9

Pushing to AC3.5. We just ran out of time for AC3.4.

rmackay9 avatar Aug 29 '16 07:08 rmackay9

@rmackay9

I might be seeing this issue wrong, but don't we already have all the code infrastructure validated, verified and in place for this ? If the polygon fence checks if it's inside, couldn't we just check if we're outside. Than we could even use a fence type to determine if it's a fly inside/fly outside polygon fence ?? This would cover a great number of situations, and won't invalidate any further more comprehensive multi no fly zones.

lvale avatar Sep 09 '16 23:09 lvale

@lvale, yes, we have about 70% of what we need. What we're missing is just a way to store lots of individual shapes to act as stay-out-zones. So that's probably going to need some new mavlink messages and some work on storing the shapes. A lot of re-use of the polygon fence code is possible.

rmackay9 avatar Sep 10 '16 06:09 rmackay9

@rmackay9 I would start with a KISS approach. One single polygon stay-out zone. I sincerely think that it would cover a large percentage of the use cases and would gets us some time to rethink (if required) a more comprehensive approach, that would make the 30% you mention. All the current options (except height) used for fence could be re-used but with reversed functionality, ie stay-out instead of stay-in. So users would have to choose either a stay-out or a stay-in option for fence.

I remember that some 2+ years ago, Horizon Hobby had a similar function on their Blade350 copter that they called something like a SAFE function. Their implementation was quite simple, and basically was a cylinder with 5 meters radius with the center of cylinder placed a bit more than 5 meters behind the arming location of the copter, so that the copter would never enter the pilot zone. It was fun to use that for "look at me"/dronie similar functionality using manual control.

lvale avatar Sep 10 '16 17:09 lvale

We whould merge this in with the discussion around standardizing the mavlink protocol for sending fence points.

DonLakeFlyer avatar Sep 13 '16 19:09 DonLakeFlyer

Did the outback challenge "Exclusion zones" have any affect on this?

Naterater avatar Jan 17 '19 23:01 Naterater

Leave this open unless there’s a duplicate. There was a bunch of work (mainly by Don, input from @wickedshell) to design a new fence protocol that facilitates this, which is implemented in qgc but not ArduPilot. The OBC work is part of the way to getting it in, but that work hasn’t been merged.

auturgy avatar Jan 17 '19 23:01 auturgy

Leave this open unless there’s a duplicate. There was a bunch of work (mainly by Don, input from @WickedShell) to design a new fence protocol that facilitates this, which is implemented in qgc but not ArduPilot. The OBC work is part of the way to getting it in, but that work hasn’t been merged.

it is possible in the qgc? new fence protocol? how can i do that? i already download qgc, but i can't find that function!

NoYoungRea avatar Apr 04 '19 14:04 NoYoungRea

I’m not sure of the current status. @peterbarker has been working on it.

On 5 Apr 2019, at 1:02 am, NoYoungRea [email protected] wrote:

Leave this open unless there’s a duplicate. There was a bunch of work (mainly by Don, input from @WickedShell) to design a new fence protocol that facilitates this, which is implemented in qgc but not ArduPilot. The OBC work is part of the way to getting it in, but that work hasn’t been merged.

it is possible in the qgc? new fence protocol? how can i do that? i already download qgc, but i can't find that function!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

auturgy avatar Apr 04 '19 20:04 auturgy

it is possible in the qgc? new fence protocol? how can i do that? i already download qgc, but i can't find that function!

At the moment ArduPilot fence is not supported on QGC

lvale avatar Apr 04 '19 21:04 lvale

Support for inclusion and exclusion polygons and circles is in master for Copter and Rover and will go out with version 4.0.0 in the coming weeks. Thanks @peterbarker!

rmackay9 avatar Sep 27 '19 23:09 rmackay9

Thanks everyone

DonLakeFlyer avatar Sep 28 '19 00:09 DonLakeFlyer