Real-Time Obstacle Avoidance Algorithms for Unmanned Aerial and Ground Vehicles