A funny story I read about once:
> I've got a good story about the mines using this tech. A mate works for them and was telling me after changing over to driverless trucks they started getting huge divots in the ramps in the mines.
> They went to site and watched the trucks to see what was going on, and the trucks were (with centimetre precision) changing gears in the exact same spot causing huge divots in the ground. They ended up having to program in a random number generator in that algorithm to avoid them.
Source: https://www.reddit.com/r/Futurology/comments/3p7qg6/driverle...
Yes, that "behavior" had to be programmed in.
The autonomous vehicles had to learn to be "assertive" (ie. start rolling slowly into the intersection) in order to not confuse other drivers at the stop.
The vehicles also had to learn that a hipster standing on a fixie's pedals rocking back-and-forth was not an intersection hazard in spite of scoring high on the idiot detector.