Researchers developed a machine-learning technique that can autonomously drive a car or fly a plane through a very difficult 'stabilize-avoid' scenario, in which the vehicle must stabilize its trajectory to arrive at and stay within some goal region, while avoiding obstacles.