In a perfect world, hazardous space rocks would be detected decades before their close encounters with Earth, giving humanity enough time to launch robotic "gravity tractors," which would nudge the asteroids off course by flying alongside them for long periods of time.