When car tech gets good enough to avoid almost all incidents with people, something drastic is going to happen. Naturally everyone will just step out on the road causing the cars to stop. So either driving through a city will become a situation you avoid if at all possible, or governments install fences and barriers everywhere and make walking without right of way a serious crime.