Two decades ago, driverless cars were mostly the stuff of science-fiction fantasy, a feature in a futuristic movie or a conceptual project for engineering students.

Today, the earliest versions of autonomous vehicles are very much real. Technology companies and vehicle manufacturers are in fierce competition, and states can’t seem to move fast enough to welcome driverless test vehicles onto their roads.