Полная версия
Autonomy
Sometimes it was hard to tell what Whittaker meant by his stories. Peterson interpreted this one as a challenge. Were you going to go about your life just getting by? Or were you the type who was going to go out and give your best effort to do something awesome?
Realizing that his course would require more work than they were prepared to give, some people dropped Whittaker’s class. The ones who remained essentially dropped every other one of their classes and just worked for him. Peterson was one of the ones who remained. He gave up his social life, as well as communicating with his family. He even gave up sleeping. Several months in, he became so sleep-deprived that he fainted. The problem was that he was going down a set of stairs when he did. He hit his head, was taken to the hospital to be assessed—and was back working on the project within a few days.
Empowering inexperienced and sleep-deprived graduate students who were totally committed to the project’s success could create some unusual situations. One morning, Whittaker and Urmson arrived to check in on the students and volunteers and were met with the results of one of these hyper-caffeinated work sessions: Their treasured Humvee no longer had a roof. Working through the night, one of the student team members had decided that the Humvee’s interior didn’t have enough room to store the batteries and computers and actuators that the self-driving equipment would require. So he went and got a Sawzall and cut through each one of the Humvee’s roof pillars, essentially decapitating the vehicle.
This was the sort of initiative that would typically have been applauded by Whittaker. Except the impromptu roof amputation wasn’t really necessary. Even if the equipment couldn’t fit in the Humvee’s cab, they could have ripped out some seats, or mounted additional equipment on the Humvee’s roof. Removing it made the vehicle illegal to drive on public roads. From then on, whenever they wanted to take the Humvee to the sort of wide-open space where they could test it, they would have to tow the vehicle—an ignoble start for a robot that was supposed to drive itself.
To provide the Humvee with the ability to drive itself, Red Team essentially reverse-engineered the sensory tools humans use to help them drive. The vehicle needed, for example, eyes to see—and so the Red Team procured several types of LIDAR (Light Detection and Ranging) devices. The LIDAR’s job was to shoot out beams of light and sense when the beams bounced back. Precisely calculating the timing of the beams’ return allowed the LIDAR to determine how close the sensor was to the object that the light beam bounced against. Repeated thousands of times per second, the LIDAR could create a rudimentary picture of the world outside the vehicle.
The main LIDAR sensor would allow the robot to detect obstacles seventy-five meters ahead. Three supplemental LIDAR devices scanned a wider field of view within twenty-five meters of the robot’s front end. A stereo-vision processing system represented a different way to use light to detect objects, employing a pair of cameras. But the cameras and LIDAR might have trouble penetrating the dust clouds that could arise on sandy desert roads. To provide a sense of the world in dusty conditions, Red Team also bought a radar system that used sound to detect obstacles.
To control the vehicle’s direction and speed, Red Team wouldn’t be able to use a foot on the gas pedal or a hand on the steering wheel. Actuators would take their place. Essentially, these were electric motors that twisted, pushed or pulled—to make the vehicle accelerate, brake or turn left or right.
Sitting in the center of all that was a series of computers, the robot’s brain. Donated by Intel, one was a quad-processor Itanium 2 server that featured three gigabytes of RAM. Some of the computers were intended to combine the information provided by the LIDAR, the stereo-vision system and the radar sensor to create a model of the world. Another computer employed GPS data and motion-tracking tools to locate the robot in the world within a single meter of accuracy. Now that it had a conception of its surroundings and knew its location, the robot’s computer system would have just two questions to answer. Two questions that humans asked themselves, thousands of times a trip: How fast should I be going? And where should I be steering?
Whittaker scheduled one hundred days to actually get the robot assembled and the software built. The deadline fell in November, but as Thanksgiving approached, significant portions of the vehicle remained unfinished. The computers weren’t wired together, for example. Nor were the sensors mounted. The robot did have a name, though: Sandstorm, after the dust clouds the vehicle would kick up in the Mojave.
Whittaker and Urmson both worried a lot about the Mojave Desert. They worried about the off-road conditions of the course, and the effects of the Mojave’s rutted roads on their sensitive sensors and microprocessors. Driven over even at moderate speed, the Mojave Desert’s rocks and ridges were bound to create vibrations that the students believed had the potential to damage the computer’s memory. After all, your basic disk drive is just a magnetic metal plate that spins really quickly. They’re encoded by a precise bit of metal that hovers just above the plate. Extreme shocks could see the metal stick gouging chunks from the spinning plate and damaging the drive. Those same bumps could create false readings from the sensors.
Consequently, Red Team spent a lot of time determining how to insulate the computers and sensors from the jars and bumps that would happen as the Humvee drove across the desert. The solution, they decided, was to protect the equipment the same way automobile manufacturers insulated humans from bumps and jars. With springs and shock absorbers, which were fitted to an enormous metal box where the Humvee’s roof used to be. Dubbed the “e-box,” for electronics box, the 1,200-pound container didn’t just contain hard drives. It also encompassed much of the robot’s most sensitive equipment—the computers, the GPS system, the radar as well as the supplementary LIDAR units.
The main LIDAR and the stereo-vision device still remained sensitive to the pitches and rolls that could strike the robot as it navigated the off-road trail. So the team spent untold hours engineering a device based on old nautical gimbals, complex series of interconnected arms and pivots that kept a ship’s compass stable in even the heaviest of seas. Part of the Red Team designed and built their own gimbal, mounting inside it the main LIDAR and the stereo-vision system, and protecting it all in a sphere a little larger than a classroom globe. Little motors in the gimbal allowed Sandstorm to direct the LIDAR and camera wherever it needed to sense the world. Heading into what its onboard map told it was a leftward curve, the LIDAR would “look” to the left so that it could see the world in the direction of the world to come.
As technical director, Urmson was the one in charge of putting all these pieces together. He felt enormous pressure both at home and on the Red Team. That September, his wife had just had the couple’s first child, a baby boy. But Urmson couldn’t spend much time at home. He had made a promise to Whittaker that the robot would drive itself the entire length of the race, 150 miles, by midnight on December 10, 2003—three months before race date.
To meet that deadline he was working sixteen-hour days, seven days a week; during one furious round of assembly Urmson didn’t sleep for forty hours. The week before Thanksgiving, Whittaker added to the pressure. “This vehicle hasn’t rolled so much as a foot under its own control,” he said during one meeting with Urmson and other key team members, according to the journalist Wayt Gibbs. “You have promised to get 150 miles on that beast in two weeks … Anyone who thinks it is not appropriate for us to go for 150 miles by December 10, raise your hand.” Silence. Not a single person elevated an arm. Whittaker smiled, according to Gibbs, and made an observation in his characteristically florid language: “We’re now heading into that violent and wretched time of birthing this machine and launching it on its maiden voyage.”
The assembly work happened in a big garage in Carnegie Mellon’s Planetary Robotics building. Envision the best mechanics shop you’ve ever seen, and you’ll be close to this workspace. The ceiling is a few stories tall, with gangways and a small-scale version of a crane, the better to lift heavy objects. Lathes and drill presses, drawers full of every implement imaginable, as well as computer diagnostic equipment—every available horizontal surface features tools. It is the kind of place where you could literally make almost anything.
The venue would host Urmson and the members of his team pretty much nonstop through that Thanksgiving weekend. By the end of it, enough computers were wired together, and enough sensors mounted, that Sandstorm felt like it was coming alive. It was around this period that the team found the perfect place to test their Frankenstein’s monster. There weren’t many spots with convenient access to the CMU campus where a 5,000-pound, exhaust-snorting, diesel-gulping, oil-dripping robot could push the limits of its abilities without risking civilian fatalities. It was Mickey Struthers, the postman volunteer, who thought of the solution. One day while he was driving over Pittsburgh’s Hot Metal Bridge on the way to Carnegie Mellon, Mickey noticed the lights along the shores of the Monongahela River twinkling in the cool evening air. All except for a vast swathe of dark shoreline to the right of the bridge. Mickey knew that was industrial land that had once housed Pittsburgh’s last steel mill, the LTV Coke Works, which had closed in 1998. Since then the land had sat fallow.
Struthers suggested the site to Whittaker, who loved the idea for both its convenience as well as its industrial heritage. The 168-acre land parcel housed a railroad roundhouse and numerous outbuildings and equipment that made it seem as though it was left over from the industrial revolution, connecting the team to the same brawny spirit that had built Pittsburgh so many decades ago. With a few phone calls to the wealthy family foundations that owned the land, Whittaker arranged for the team to test there.
On the second of December, the team took the first of what would become many test runs at the Coke Works. The distressed location with its spent oil cans and rusted industrial detritus seemed appropriate for the ancient-looking Humvee, which just in general seemed to have more in common with a Jurassic-era dinosaur than one of the most innovative mechanical devices ever assembled. Snow covered the ground. The temperature was eighteen degrees. “Just like the Mojave Desert, huh?” shouted one team member, according to a Wired article. (Whittaker, meanwhile, was wandering around in a knit shirt, jeans and boots he wore without socks.) Urmson climbed aboard for the first run to manually hit the emergency stop button if the robot suddenly went crazy. The robot swerved toward a precipice when first activated, then settled and drove its course as expected. After a few uneventful laps Urmson decided, at 7:51 P.M., to see what would happen when he gave Sandstorm free rein. He clambered off the robot. The team programmed in a series of GPS waypoints that drew a dot-to-dot version of an oval. Not sure whether to breathe, the team watched the robot roll along its route for half an hour, ultimately accumulating four miles. No accidents. No incidents of any kind, in fact. They were nowhere near making their 150 miles yet, but that evening, it was difficult to deny they were progressing toward their goal.
Another week passed, and late in the evening on the tenth of December, with just a couple of hours before the midnight deadline by which Urmson and the team had promised Whittaker that Sandstorm would be able to drive 150 miles on its own, the robot was not cooperating. Bugs arose in the self-driving software every time it drove more than a few laps. Urmson and his fellow teammates had been camped out for days at the Coke Works, if you called camping sleeping in your running car with the heat on full blast. Despite daylong debugging sessions, Sandstorm remained unpredictable and occasionally suicidal—lurching into a telephone pole, catching fire, becoming suddenly unable to sense GPS signals. A calm spell saw the Humvee revolving the track, again, again, again, and then for no apparent reason, swerving off course and running itself through a chain-link fence before Urmson could activate the e-stop. Sometime later, with Sandstorm liberated from the barbed wire and the deadline approaching, Whittaker gathered Urmson and everyone else around him, according to Gibbs. Sure, the December 10 deadline approached—but even if it passed, Whittaker vowed, they’d continue their work, through tomorrow, and even the next day if necessary, until Sandstorm achieved the 150-mile goal. “We say what we’ll do, and we do what we say,” vowed Red in Scientific American.
Then it started to rain—a frigid December drizzle that soaked clothing and chilled to the bone. Sandstorm was not well protected against rain. One of the dozen or so team members still on site spread a tarp over the robot’s computer equipment. Red wasn’t around. Gibbs wrote that Urmson looked at his teammates, shivering in dripping lean-tos under blankets. He thought about the possibility of the falling moisture disabling one of their sensors, or shorting out a processor. Perhaps he also thought about his wife and baby boy back home. And he decided to send the team home.
Whittaker was livid when everyone showed up to the Coke Works the following day, Gibbs reported, comparing the team leader to “an angry coach at halftime.” He ranted about all the sacrifices they’d made to try to achieve the 150-mile goal. The shop was a mess, the robot unpainted, the website out of date—all that work went undone as everyone concentrated on getting Sandstorm in the sort of shape required to make its race run. To a roomful of people unwilling to meet his gaze, Whittaker said, “Yesterday we lost that sense deep inside of what we’re all about. What we have just been through was a dress rehearsal of race day. This is exactly what the 13th of March will be like. We’re in basic training; this is all about cranking it up a notch. Come March, we will be the machine.” Whittaker concluded his venting, Gibbs reported, by asking who was willing to work all day, every day, for the next four days, until they completed their nonstop 150-mile run. Fourteen team members in the room raised their hands. Including Urmson.
Two days later, U.S. soldiers captured Saddam Hussein in a spider hole near Tikrit, and the war in Iraq dominated headlines and the cable news channels as it never had. Every day, the news seemed to feature more casualties from IEDs in Iraq or Afghanistan—fatalities Red Team members hoped the robot vehicles might one day prevent. Then the overseas conflicts supplied Urmson with an idea.
In recent years, maps had become a crucial component of successful robotics. Maps allowed robots to locate themselves in the world much more accurately than GPS alone. A technique called simultaneous localization and mapping, abbreviated to SLAM, saw a robot scan an area with LIDAR to map the permanent landmarks—in exterior spaces, things like trees, light poles, road curbs and buildings. Then, the next time the robot traveled the same territory, it would consult its map and compare its position relative to the previous landmarks, to get an ultra-accurate idea of where it was. Problem was, Sandstorm couldn’t use this technique, because DARPA was keeping the race location secret.
Then, one day, Urmson was watching coverage of the war on one of the cable news channels. The scene will be familiar to anyone who lived through the post-9/11 period—a grainy portrait of an SUV traveling fast along a remote desert road. From somewhere in the distance, a rocket blazes into the picture, collides with the SUV and obliterates the vehicle in a blast of dust and metal.
The footage of the successful deployment of a laser-guided bomb was captured by a camera-equipped drone aircraft. The drones flew above the conflicts to provide imagery of the Iraqi and Afghan territories. Drones were searching Afghanistan for Al-Qaeda hideouts that might shelter Osama bin Laden. They were scanning Iraq for nests of Ba’athist loyalists.
If the U.S. military could use drones to obtain imagery of places so hostile and remote, Urmson thought, then such imagery would soon be available for the entire world. And perhaps, Urmson reasoned, that same type of imagery could be used to simplify the robot’s task. They weren’t able to use LIDAR to scan the race course in advance, because no one on Red Team knew where the race course was, but they did know the race went across the Mojave Desert—and maps existed of that, didn’t they? In fact, portraits of the Mojave had already been built by entities like the U.S. Geological Survey and the military.
“We realized we didn’t have to do SLAM,” Urmson recalled. “Because it was becoming clear there would be a global database [of maps] available … So why not use them?”
If Red Team members could give Sandstorm an accurate map of its surroundings before the race, they could remove a time-intensive step from the computational task. The new approach reframed the challenge. The team had assumed they were trying to build a robot that could sense the world so well, it could discern a road in the desert and navigate it safely for 150 miles. Using maps meant the robot could be told in advance where the road was, and how to drive it. The method had the potential to allow Sandstorm to travel much faster than it otherwise might.
But first, Red Team’s undergraduates, pauper grad students and volunteers would have to build the most detailed map of the Mojave Desert ever assembled. It was an enormous task, but Red Whittaker’s students were accustomed to achieving enormous tasks. A portion of the team set to procuring high-res maps of the whole of the Mojave Desert, a relatively simple matter, given Whittaker’s and Spencer Spiker’s defense contacts. Now the team set about using the maps to plot routes through the Mojave. They also dispatched two engineers, Tugrul Galatali and Josh Anhalt, to drive as many roads in the Mojave Desert as possible in a rented SUV with video cameras sticking out the windows, capturing imagery from the ground in what amounted to an early, rudimentary execution of Google’s Street View idea.
The next step saw the Carnegie Mellon mapping team comparing the footage and the map to assign each area with a value—what they called a cost. So a ridge or a cliff that would wreck Sandstorm if the robot went over it would get a cost of infinity. A smooth road or a dry, flat lake bed likely would have a cost of zero. Sandstorm’s computers then were programmed to direct the robot to drive the route with the lowest cost.
One evening, with just weeks to go before race date, the senior members of Red Team met in the loft of Carnegie Mellon’s Planetary Robotics building. “We were making some progress, trying to map every trail in that whole desert,” Urmson recalls. But at some point during this meeting in the loft, Urmson realized their work wasn’t happening quickly enough. “It became clear we weren’t going to get there,” he said. Too many different potential routes existed. By the time the race date arrived, they would have mapped out only a small portion of the possible routes.
That was the point that Red Team came to its second epiphany. To reduce the possibility of exactly this sort of advance route planning, DARPA had told the teams that its staff would wait to disclose the precise course until just two hours before the start—at 4:30 A.M. the morning of the race. Red Team was getting good at creating routes through the desert. So what if they changed strategies? What if, rather than focusing on creating a map that featured a pre-driven route along every single conceivable trail through the desert, they instead became really good, and blindingly fast, at teaching Sandstorm to drive a single trail?
Rather than a perfect map, they thought, why didn’t they focus on creating a single, perfect route? One they could plan out in the two-hour span between the time DARPA disclosed the approximate course and the start of the race? The old way involved using the maps and the route planners during the months before the race to effectively pre-drive every single road through a desert that covered a territory of fifty thousand square miles. This new way involved focusing on a single 150-mile path that the planning team would examine in fine detail—and doing it in the 120 minutes that passed after DARPA disclosed the race route.
From that moment on, one part of Red Team focused on executing the second epiphany. In the old high bay in the Planetary Robotics building, about a dozen members rehearsed exactly what would happen after DARPA handed over the route in a computer file at 4:30 A.M. The file would feature a series of about 2,500 GPS waypoints, which everyone referred to as “breadcrumbs,” spaced about a hundred yards away from one another, tracing out the course in a dot-to-dot fashion. The dozen members of Red Team’s planning unit would leap into action. One would feed the file into a software program that used the Mojave map’s cost estimates to build a more precise route, with many times more breadcrumbs than DARPA’s route network definition file (RNDF).
But Urmson, Whittaker and their team didn’t trust the route calculated by the planning software. It had been known to send Sandstorm on journeys that went over ridges, into ditches or through wire fences. So a team of editors would divide up the course into sections and then, using computers, virtually go over every yard of the computer-calculated race path to make sure the software hadn’t made any mistakes. Once the human editors were done correcting the course, they’d reassemble it into a single route and upload it to Sandstorm, to execute on the race course.
Still, by January 2004, just two months before race date, Sandstorm had not yet gone fifty miles on its own. One thing causing Whittaker and Urmson anxiety was the disconnect between where they were testing Sandstorm and the race course. They were testing the robot on the frigid shores of Pittsburgh’s Monongahela River. The race would be held in the Mojave Desert. Would the change in environment pose a problem to Sandstorm?
In February, Whittaker arranged for some of the team’s key members, including Urmson, Peterson and Spiker, to accompany Sandstorm to the Mojave Desert to refine the robot’s capabilities. (Sandstorm actually made the trip in a fifty-two-foot enclosed semi-trailer.) The final part of preparations would happen at the Nevada Automotive Test Center, an enormous swathe of desert where companies from all parts of the automotive sector, from tire manufacturers to transmission firms, tested their products in the harshest desert terrain available.
In Nevada, Urmson’s team worked exclusively on Sandstorm. Write code, take Sandstorm out to test the code, watch for mistakes, take note of the mistakes, write code. They repeated the cycle without regard to clocks or arbitrary separations of day and night. Two, three days at a time they worked without sleeping, fueled by Mountain Dew, Red Bull and junk food, and then, when they were too exhausted to manage to keep themselves vertical, they slept. Sometimes in an RV they’d rented, although the trailer didn’t have enough beds for all of them; others slept on the floor of the test center’s mechanics shop on folding lawn chairs, or in the reclined seats of the SUVs they rented to tail Sandstorm.
Working nonstop, through night, through day, the way they did presented some difficulties. One evening, past midnight, Sandstorm ran into a fence post, wrecking the front bumper, which was necessary to support cameras and radar sensors. The test center’s mechanics building was locked up, of course, but in the spirit of asking for forgiveness being easier than requesting advance permission, Spiker and one of the students scaled the fence and broke into the building, where they welded together an entirely new bumper with thick steel pipe. The thing ended up weighing about two hundred pounds—making it more than able to support the sensing equipment the robot required. “You could probably have driven through a building and not hurt that thing,” Spiker recalls.