The Washington Post goes for a spin in Carnegie Mellon University's autonomous vehicle. Rep. Bill Shuster (R-Pa.), chairman of the House Transportation and Infrastructure Committee, says driverless cars are the way of the future. (Zoeann Murphy/The Washington Post)

Driverless cars are coming. And those of us who drive in Washington know that the city offers its own particular version of driver hell. What we don’t know is what will happen when the autocar finds itself in that hell. So we set out on a summer afternoon to see how a driverless car could do on the streets of the nation’s capital.

The little car is tootling around Washington — pretty much on its own — when a police officer bolts into the road ahead of it, almost within spitting distance of the Capitol dome.

What is the cop waving about? Hard to say. The car is being driven by computers, and wild waving is a bit too complicated for them to understand.

Passenger Jarrod Snider taps a button on the center console and puts his hands on the steering wheel.

[Driverless cars: 15 things you need to know]

“Autonomous ready,” the voice of the computer says a fraction of a second later, eager to take control again.

Swing a stick on the Mall this summer and you’ll hit a dozen skeptics who doubt that the streets of Washington — or any city — will ever be filled with cars that drive themselves. But the doubters may well witness that transformation in their lifetimes, and very likely sooner than they think.

The ability of the vehicle cruising unnoticed among the tourists and important people in pinstripes on Capitol Hill would shock most of them. A ride in it also points to a few chinks in its armor.

The autonomous car uses three types of sensors to make decisions. See how the cars work.

The computers running the car, for example, can see the police officer bustling into the middle of Constitution Avenue at First Street NW. But they can’t figure out why he is doing it — and neither can the people riding in the car. It turns out the officer wants to wave off a driver in another car who was making an improper turn.

Could the car have handled it without Snider’s help?

“Yeah, it started to slow down before I took over,” Snider says, “and as he stepped out of [our] lane and walked across the street, the car would have continued to go. The car obviously doesn’t understand gestures like ‘Stop here.’ ”

If this car — a silver-gray Cadillac SUV converted to autonomous driving by Carnegie Mellon University — looked the least bit odd, the Capitol Police would swarm after it with machine guns.

It doesn’t. But it’s bristling with technological weapons.

Two cameras — one pointing up at traffic signals, the other down at lane lines — are hidden beneath a slight ridge added just above the windshield. There is longer-range radar behind the Cadillac medallion on the front grille and shorter-range radar behind the front bumper. A pair of laser beams peer out from that bumper. Unseen behind tinted windows near the back seat, from unobtrusive boxes that match the Cadillac’s tan interior, a radar and a laser beam look out to each side. From the rear bumper, more radar and lasers.

All of them feed into a bank of four computers hidden in the spare-tire well beneath the rear floor of the vehicle. The computers also get GPS data and mapping feeds. They know speed limits and, unlike the other driver on Constitution Avenue, places where left turns are illegal and where right turns on red are okay. If one computer fails, the others take over its chores and the person behind the wheel gets an alert.

Right now, put the Cadillac on an interstate and its developers say it could drive you from Washington to San Francisco, though it would need your assistance at gas stations.

But in D.C.? That’s another matter.

The city’s streets are full of cars driven by impatient locals and bewildered tourists. Pedestrians talking on cellphones, texting tourists, cabs darting across lanes to grab a fare, bicyclists by the dozens, out-of-state tour buses whose drivers appear to be feeling their way around town.

Jarrod Snider of Carnegie Mellon University manually parks an autonomous car on Capitol Hill in June. The 2011 Cadillac SRX has been retrofitted with cameras and sensors that can detect traffic lights and pedestrians and read some road signs. (Linda Davidson/The Washington Post)

“We’ve tested this vehicle in many areas, and this area is pretty difficult,” Snider says, dropping his hands from the wheel as the computers take over again. “We think it’s doing a pretty good job. ”

“But we have more work to do,” Raj Rajkumar, the Carnegie Mellon professor who directs the project, says from the back seat.

The car buzzes on down Constitution, flips on its right-turn signal, slows and then turns south on First Street. It identifies a red traffic light and dutifully stops in front of the Supreme Court until the light changes.

Then there’s trouble.

A white service truck is stopped in the right lane just past the light, and a yellow cone plopped behind it says it isn’t going anywhere soon.

“I’m going to take over to get us past,” Snider says, punching the console button. “It doesn’t have the higher-level reasoning like we have that there’s a cone there so this truck’s probably not going to move. So it’s trying to queue up in traffic, basically. It’ll just sit there.”

The computers are back in command as the car nears Independence Avenue, signals its intent to turn right and then stops to wait for the red light to change. This traffic light is one of six in the District that alert the Cadillac to its color. Someday all lights may do that, but the car’s cameras don’t really need the help.

The main computer control center resides in the rear cargo area of the car. (Linda Davidson/The Washington Post)

The intersection is aswarm with the lunch-hour crowd, and each pedestrian in the crosswalk or sidewalk shows up as a green squiggle on the standard dashboard screen that Cadillac builds into all its vehicles. In this one, however, the screen displays 360 degrees around the car: people, obstacles, traffic signals, construction zones and other vehicles.

The big red bus in the right lane on Independence Avenue is the Cadillac’s next challenge.

“Changing lanes,” the computer announces, moving to get around it.

The bus driver apparently doesn’t like that.

“We’re trying to pass him, but then he cut us off,” Snider says.

If she is upset — and the firm but melodious voice of the vehicle unquestionably belongs to a woman — she doesn’t let on. Her verbal skills are limited. In addition to “Autonomous ready” and “Changing lanes,” she says “Starting up,” “Entering work zone” and “Exiting work zone.”

The rest of the computers’ communication — currently and what’s planned in the future — come in chimes, beeps and vibrations. If the person in the driver’s seat touches the wheel or either of the floor pedals, much as with cruise control, the computer relinquishes control. If the computer needs the driver to take over, the steering wheel and passenger seat may vibrate.

A black rectangle below the rear bumper is one of many hidden sensors on the self-driven car. (Linda Davidson/The Washington Post)

A small camera is mounted next to the vehicle’s rear-view mirror. (Linda Davidson/The Washington Post)

“Sometimes, if it becomes not confident about something, it can tell you to take over, and if everything’s okay, it can tell you it’s ready to drive autonomous,” says Snider, lead engineer on the project at Carnegie Mellon. “It’s just providing some feedback to the driver.”

Anybody who has tried to turn left from Independence onto Washington Avenue knows that’s a lousy intersection, and the Caddy computers see that, too.

“It doesn’t have a green arrow here, so obviously it’s got to detect the cars coming from the other direction,” Snider says as the car waits patiently, then makes the turn, veers right onto Second Street and then takes the on-ramp to Interstate 395 south.

As two merge lanes that lead to the highway come together, a silver Mercedes suddenly forges ahead and Snider pops the console control button.

“Maybe I should have let [the computers] do that,” he says with regret after the merge is complete. “It definitely has some trouble with that because of the drivers here. The car doesn’t have that kind of aggressiveness. It won’t push its way in or force its way into a merge.”

Back in control, the computers accelerate the car to 50 mph as it crosses the bridge into Virginia, surrounded by other cars.

“It’s determining how fast to drive based on the curvature of the road, based on the other cars in front of it,” Snider says. “It knows the speed limit, and it’s not going to violate the speed limit. But it can obviously do other things, like here you can see it’s slowing down to make its way into the other cars.”

“Changing lane,” the computer chimes in.

“So all of this is being updated in real time at a very high rate, determining what to do,” he says. “So now it’s just taking an exit here.”

The car zips off I-395, takes a right in front of the Pentagon and then neatly merges back onto I-395 headed north. Over the bridge, it will peel off the freeway back into D.C. traffic and complete an uneventful trip back to a parking space beside the Capitol reflecting pool.

Driverless cars are coming to the United States and rest of the globe, Rajkumar is saying as the Cadillac covers the final blocks.

Professor Raj Rajkumar is director of Carnegie Mellon University’s autonomous-car project. (Linda Davidson/The Washington Post)

“Absolutely no doubt at all,” he says, before quickly acknowledging the doubters. “I welcome their skepticism. Technology cannot be stopped. We just have to make sure that it is safe, affordable and legal.”

Don’t expect an autonomous car to land in your driveway with a “big bang,” he says.

Remember anti-lock brakes? How about cruise control?

Those were the first steps, he says.

The next one coming in assembly-line cars — within three to five years — will be a highway pilot feature, he says. Put the car in the correct lane, tell it to go to San Francisco, and it will.

A year or two later, highway “plus-plus” will arrive, allowing that San Francisco-bound car to weave around the slowpokes along the way.

In the same time frame — three to four years — look for traffic-jam assist capability. The car will take over for you while inching through bumper-to-bumper traffic and alert you to take back control once there’s clear sailing.

“The [totally] driverless version will happen in the 2020s,” Rajkumar says. “But the whole process will be incremental. More and more scenarios that we drive in will become automated, and one fine day you’ve given up complete control, but you don’t even notice.”

Get updates on your area delivered via e-mail