Mapping nearby features, spotting road edges and lane markings, reading signs and traffic lights and identifying pedestrians is done using a combination of cameras, radar and lidar (which works like radar, but with pulses of light rather than radio waves).
ECONOMIST: Inside story