ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.25k stars 16.86k forks source link

Copter: use terrain data for path planning (aka obstacle avoidance) #11552

Open rmackay9 opened 5 years ago

rmackay9 commented 5 years ago

ArduPilot Copter/Plane supports terrain altitude based missions (wiki). This existing feature is good for mapping missions where the user is interested in maintaining a specific altitude above the terrain.

Somewhat separately some users want their vehicle to fly to a specific place and avoid terrain along the way (i.e. if there is a mountain between "home" and the first waypoint. In these cases the user really wants terrain based avoidance and in these cases the vehicle should fly the shortest path to the waypoint while staying at least X meters from the terrain.

The difference can be see in the image below. The red-ish line show the terrain based mission where the vehicle follows the contours of the land. The dotted blue line shows the path that a terrain avoidance mission would follow. terrain-avoidance-pic

apryamostanov commented 5 years ago

Hi @rmackay9 ,

Thanks for creating this Enhancement issue.

I have a question:

What will happen if there is a mountain as shown below, on a vehicle path, in the context of this enhancement?

59250515-7e96b380-8c62-11e9-8bb3-505dbd314f86

rmackay9 commented 5 years ago

@apryamostanov, yes, so definitely it should climb over that mountain.. so the shortest path would be above that mountain and then mostly straight across to the right..

apryamostanov commented 5 years ago

In this case, this seems completely fine to me. In my scenario I prefer using the dotted line - to record the video in mountains.

Just for information - adding same feature (to avoid mountain) into the terrain-based mission - it will be more difficult right? I.e. as an option for this mission configuration. I don't opt for it, just asking for interest.

ddomit commented 10 months ago

Hello Guys,

Its almost 4 years later now, any news on this feature? Can we help in any way?

Thanks