The Department of Motor Vehicles has been working for several years on regulations that will govern how the technology can be rolled out to the public when companies believe testing shows it is ready.