Terrain-Aware Adaptation for Two-Dimensional UAV Path Planners