Autonomous Vehicles

Back in 2000, I got a contract to build a car racing game for a major Australian website (to tie in with Australian Grand Prix) coverage. This ended up being a shockwave game along the lines of old TV console racing games (2d overhead view). The hardest part was the AI. I had never done anything like this before so I came up with a simple-minded approach: make a series of waypoints, link them, and have the cars steer towards the waypoints one by one. To make the behavior of other drivers less robotic, I gave drivers some qualities — aggression and precision if you like — that determined down precisely they steered towards waypoints and how fast they'd attempt to go relative to the recommended speed.

It worked and it was pretty easy to understand any misbehavior I saw and debug it by either changing the waypoint data (where is the waypoint? Is another waypoint necessary? Is the recommended speed too high or low?)

About ten years later I was asked to write a racing game for a lab experiment. The experimenter needed to be able to script aggressive behavior by NPCs and also log the actions of the player in detail. Unlike my first racing game, the cars were physics driven. They accelerated correctly and turned based in the orientation of the front wheels.

The only things I ended up changing about my original approach was to (a) calculate the turning circle from the wheelbase to smooth the AI steering behavior and (b) use the physics engine to detect potential collisions and inform the AI so it could avoid collisions or deliberately cause them.

Now, nearly ten years further down the line, I'm working at Uber ATG on the Self-Driving Vehicle platform. I'm not working on the actual autonomous vehicle smarts but I do see and hear a lot from the people who are.

The key thing to understand about what we call AI is that it's really a bunch of simple-minded cheats piled on top of one another rather than representing any level of deep insight into how our own intelligence works. You could make the argument that a lot of biological systems are very kludgey when examined.

— Tonio Loewald,