Real-Time Path Generation and Obstacle Avoidance for Multirotors: A Novel Approach