NASA Persevere's autonomous landing system planted it in a safe spot (blue area) among a sea of red (dangerous area). Terrain-Relative Navigation gave the rover the ability to avoid hazards.
NASA Discoveries, R&D, Moon to Mars Exploration Plans Persevere in 2020