How Self-Driving Cars See the Road

What does a city look like to a car with nobody in the driver's seat? Not a photograph — a pile of measurements, and a bet about the next half second.

What does a city look like to a car with nobody in the driver's seat? Not like a photograph, and not like what you see through a windshield. To a robotaxi rolling through San Francisco or Phoenix, the street arrives as a pile of measurements — images, radio echoes, a cloud of hundreds of thousands of laser points — and the software has to turn all of it into lanes, curbs, people, and a decision about the next half second.

Start with the sense you already know: cameras. They are cheap, sharp, and full of meaning. Brake lights, a turn signal, an orange vest, a stop sign, a hand raised in the air. But a camera flattens the world into two dimensions, so depth has to be worked out, either from two cameras a fixed distance apart or from how quickly an object grows as you approach it. And cameras are fragile in the wrong light: low sun, oncoming headlights, rain smeared on the lens.

Radar is the opposite kind of sense. It sends out radio waves and listens for the echo, and it gets distance directly; the Doppler shift gives it speed, almost for free. Darkness, rain, fog, dust — it doesn't care. It is cheap and tough. What it lacks is detail. A tin can and a person can look alike to radar, and it will rarely tell you what something is.

Lidar sits between the two. It fires pulses of invisible laser light and times the return, sweeping the beam across the scene to build a dense three-dimensional cloud of points, often hundreds of thousands or millions of them every second, accurate to a few centimeters. That gives you geometry you can trust: the height of a curb, the gap between parked cars, the shape of a pedestrian's legs. But heavy snow, fog, rain and dust scatter the beam and cut its range.

No single sensor is enough, so engineers fuse them. The camera reads; the radar measures speed; the lidar measures shape. When they disagree, the software weighs them by the conditions, leaning on the camera in clear daylight and on radar in a downpour.

The next step is turning raw measurements into meaning. Every point and pixel gets labeled: road, sidewalk, vehicle, tree, person. Objects get boxes around them and are tracked from frame to frame, so the car knows not just where a cyclist is but how fast and in which direction. Prediction comes next: a guess about what each of them will do, because the pedestrian walking toward the curb will probably keep walking.

Underneath all this sits a detailed map. Companies build centimeter-accurate maps of lane lines, curbs and intersections, and the car matches what its sensors see against that map to work out exactly where it is, even between tall buildings. The map is a prior, a strong hint, not a cage: where the map and the camera disagree, the camera wins.

Finally the car plans. The software generates many possible paths, scores them against safety, comfort and the rules of the road, picks one, and sends steering, throttle and brake commands. Then it does the whole thing again, many times a second.

Here is the strange part. Most of that is essentially solved in good weather on streets the car has been taught. The difficulty is the last few percent, and that tail is long and full of oddities.

This is why the industry talks about levels of autonomy. Level zero is warnings only. Level one is a single system helping out, either speed or steering, with your hands on the wheel. Level two combines both at once, the car steering and holding speed on the highway, but you are still watching and still responsible.

Level three is the awkward one: hands off and eyes off in limited conditions, but the car must ask you to take over with enough warning. That handover is as much a human problem as an engineering one, because somebody who has been reading for twenty minutes cannot reliably grab the wheel in ten seconds. Level four is where the robotaxis live: the car handles everything inside a defined area, a mapped city or a parking garage, and needs no human at all. Level five means anywhere, any road, any weather, no boundaries, and nobody sells that yet.

In San Francisco and Phoenix you can already ride in cars with empty driver's seats. They handle double-parked delivery trucks, jaywalkers, emergency vehicles and road work, and they do it in a mapped, geofenced area with remote human support watching. That is level four, impressively done, not level five. And the failures are real: in twenty twenty-three a pedestrian was struck and dragged by a robotaxi in San Francisco, and the company's permit was suspended.

Snow is the classic nightmare. It covers the lane lines, so the car has to infer the lane from curbs, plowed edges and the tracks of the cars ahead, and it has to tell snow from a white wall or a plastic bag. Salt spray blinds the sensors. Construction zones are the urban version of the same problem: cones, temporary lanes that contradict the map, and a worker holding a stop paddle or raising a hand.

Human gestures are harder than they look. A wave means go, a nod means “you first,” eye contact at a four-way stop means something. Drivers negotiate all day without thinking about it. Machines have to learn that language, and it isn't standardized from one country to the next.

There is a real tension here. A car that is too polite can freeze forever at a busy crosswalk, and a car that stops suddenly gets rear-ended. Too assertive is worse. Engineers spend a lot of time on that balance.

As for the famous ethical question, the trolley problem, engineers mostly don't program it. The choices they actually face are quieter. Should the car cross a solid white line to give a cyclist room? Should it edge into a bike lane to let an ambulance through? How much risk should it accept in the rare catastrophe versus the everyday fender bender? Who owns the footage of the pedestrians it films all day? And who carries the risk, the people inside the car or the people on the sidewalk?

Shelf: Non-fiction

You may also like

  • Teaching the Machine — Discover how AI systems learn from enormous data by making mistakes and adjusting themselves, shaping the digital brains behind assistants and tools.
  • The Road: What Travel Really Teaches Us About the World — Why do we pay to sleep badly somewhere else? The answer lies in what happens to your attention on a night train, when a lit kitchen in a field and the smell of anise make you realise your own habits…
  • Can AI Think? — Can AI truly think or only mimic thought? Exploring how machines learn, predict, and the gap between human and artificial understanding.
  • Why AI Sounds So Sure — Why do AI assistants sound so sure even when they're wrong? Discover how language models create confident answers—and why you should always double-check them.
  • Tokyo After Dark: Neon, Six-Seat Bars and the Midnight Scramble — Every few minutes in Shibuya the lights stop all traffic at once and hundreds of people walk straight at each other — then ten minutes away, a bar with six seats and one host asks where you're from.
  • AI Ten Years From Now — What will AI look like in ten years? From personal assistants to robots, explore how intelligent tools might change everyday life and what challenges lie ahead.
  • Smarter Than Us? — Could AI one day match or surpass human intelligence in nearly all tasks? Explore the promises, limits, and challenges of artificial general intelligence.
  • Deepfakes: The Face That Wasn't There — In early 2024 a Hong Kong finance employee watched familiar faces on a video call and wired about 25 million dollars — almost everyone on that call was software. How does a face get built out of…
  • When Air Turned Dangerous — Explore how tiny microbes transformed Earth's air from toxic to life-giving oxygen during the Great Oxidation Event two billion years ago.
  • The Dust Bowl: How a Wheat Boom and a Dry Sky Stripped the Southern Plains — In the 1930s a wall of black soil a mile high swallowed the afternoon across the southern Plains. How did land sold as a garden become a dust storm — and what did the shelterbelt of trees from the…
  • The Restless Floor: How the Ground Beneath Us Keeps Rebuilding the World — In 1912 Alfred Wegener said the continents had drifted apart — and geology laughed at him for decades. The proof was waiting at the bottom of the Atlantic, in a rift Marie Tharp drew by hand.
  • The Stick That Changed 3D — Discover how Nintendo's three-handled controller and cartridges sparked a 3D revolution with Super Mario 64 and multiplayer mania on the Nintendo 64.