A real-time framework for kinodynamic planning with application to quadrotor obstacle avoidance