A simulator for autonomous vehicles