Switched local planner