Heavy Duty Trucking Logo
MenuMENU
SearchSEARCH

Building an Autonomous Truck Driver

Autonomous trucks learn and think and adapt to situations just like human drivers, but they do it faster, and they never tire or become distracted. At least that’s the promise. Learn more about the technology behind autonomous trucks.

Jim Park
Jim ParkFormer HDT Equipment Editor
Read Jim's Posts
March 19, 2021
Building an Autonomous Truck Driver

Daimler Trucks North America, which is working with autonomous-tech companies such as Torc Robotics and Waymo, recently showed off its second-generation autonomous Freightliner Cascadia. Note the sensor clusters on the front bumper and above the windshield and doors.

Photo: Jack Roberts

10 min to read


Autonomous trucks behave in a surprisingly similar manner to human drivers. They observe, they measure, they attempt to predict the behavior of vehicles around them, and they are constantly planning alternative strategies, all while maintaining their present course.

Ad Loading...

The better human drivers do that, too. However, lesser drivers, or those distracted or fatigued, might miss one of those steps. The result can be a crash. That’s why supporters say robotic trucks, because they never tire or get distracted, can reduce crash rates significantly.

To drive as well as humans, robotic trucks must be able to see as well as humans and make the right decisions all the time. How does that work?

Ad Loading...

Situational awareness begins with the truck’s ability to assess its surroundings.

Robotic truck companies have developed perception systems that enable the truck to “see” its surroundings. Baked-in high-resolution maps, GPS location data and inertial sensors tell the truck where it is and how fast it’s going. That awareness of itself is complemented by perception technology that informs the artificial-intelligence-based “driver” on what’s going on around it: where other vehicles are, how fast they are travelling relative to the truck, what physical obstacles exists, and what possible threats may be present.

Waymo’s autonomous truck project uses cameras and radar as well as a lidar system of its own design. 

Photo: Jim Park

“We have various types of sensors that can see the world in different ways, and they complement each other in a variety of ways to get a sense of what’s around us,” says Andrew Stein, a staff software engineer at Waymo and one of the lead engineers on the company’s autonomous trucking project. “We also have the ability to decide what all those things we’re sensing are going to do next. Our next job is to figure out — based on where I am, what I’m seeing, and what everybody’s about to do — is what should I do?” 

First, the trucks need to “see” the world around them. The keys here are diversity and redundancy, and an overlap in the data collected so the AI driver can compare one to another to verify if what the truck is seeing is real and correct.

Three sets of eyes

To do this, autonomous trucks use cameras, radar, and lidar. Together they provide a “spatial” representation of the truck’s surroundings and detect objects near and far from it. This fusion of three types of sensor input enables the truck to determine speed and distance of objects and vehicles, down to a centimeter in some cases. Trained machine learning algorithms then help the truck to determine what it is seeing, such as other cars, trucks, pedestrians, animals, guard rails, signs, etc.

Ad Loading...

A visual representation of what lidar sees. Lidar can detect large and small, moving or stationary objects. The bands of color represent distance from the device. 

Photo:  Luminar Technologies

“We use three different categories of sensors to support the perception systems,” says Ben Hastings, chief technology officer at Torc Robotics. “Cameras see the world similarly to how people perceive the world. They can see visible light and different colors and things like traffic signs and lane lines. And again, similar information to how you see the roads when you’re driving down the highway.”

The ability to recognize color is important for determining if a traffic light is red, yellow or green, for example.

Cameras are placed all around the truck, often with overlapping fields of view. Some are wide-angle to get the big picture. Others are more narrowly focused for longer-range visuals. Super-high-resolution cameras make object detection and differentiation possible at a range of distances, but they cannot provide accurate distance information. They have other limitations too, such as low-light conditions or darkness, fog, rain, snow, or if the lens is otherwise obscured. If the camera is blocked, it can’t produce an image.

“We also use radars and lidars,” says Hastings. “These are active sensors, meaning they don’t rely just on ambient light. They emit their own energy. Radar and lidar are similar in principle, but they produce very different returns.”

Lidar, which is a sort-of acronym for “light detection and ranging,” uses one or multiple laser beams to sweep across the environment. These laser beams reflect off of other vehicles, pavement, surrounding buildings, people. etc., and distance measurement can be obtained based on the amount of time it takes from when that laser is fired to when the reflection comes back.

Ad Loading...

The reflected beams produce a high-definition, three-dimensional “point cloud” from which the AI can deduce objects and most importantly, distance and speed. These point clouds are often represented visually as images in shades of red, green, yellow and blue, which represent varying degrees of reflectivity, but the lidar does not see the world in color, only in varying degrees of reflectivity.

“Lidar is very high resolution, which produces a very accurate representation of the shapes surrounding the truck,” Hastings says.

But like cameras, lidar uses light, in the form of a laser beam. It’s outside the visual spectrum, but it’s still light. Therefore it’s limited by line-of-sight and to some extent inclement weather or hazy conditions where the laser beams can be scattered by particles suspended in air, as in fog or smoke.

This image represents a radar point cloud, showing return from a radar device. Each point is a metallic surface. Radar can very accurately measure distance and directionality, but it doesn't produce a visually recognizable image. Radar can tell you in a single measurement how fast an object is moving relative to the sending unit.

Photo: Jim Park

Radar, on the other hand, is not affected by visual barriers. The third leg of the autonomous diversity and redundancy stool, radar produces an electromagnetic signal which, like lidar, is emitted and reflected back to the sensor. It can very accurately measure distance and directionality, but it doesn’t produce a visually recognizable image.

“Since we’re not bats, we’re not used to thinking about this kind of reasoning,” says Waymo’s Stein. “But radar is good at measuring distance as well as velocity. Two of the really key things about radar are its ability to measure speed or velocity directly. You don’t have to watch a thing over time and figure out how it’s moving. Radar can tell you in one measurement how fast the thing is going.”

Ad Loading...

The thing to remember is the complementary nature of these three sensors, he adds. “They’re good at different things and they overlap in some ways so there’s a form of redundancy, but also an ability to really cover the various challenges that we have in capturing everything we can.”

Artificial intelligence

The truck wouldn’t have a clue what to do with all this input without a set of instructions and something to guide it on its journey. Companies such as Waymo use terms such as “the Waymo Driver” to describe the artificial intelligence that is making the mile-by-mile, second-by-second driving decisions. We’ll call it the AI driver.

The robotic truck companies have been mapping various routes for several years, producing highly detailed maps in visual, infrared (lidar) and electromagnetic (radar) formats for the AI driver to use as a reference.

In addition to the high-resolution maps, the AI driver has been loaded with thousands of actual images: cars and trucks, people and animals, signs and roadway infrastructure, and just about anything one can imagine seeing along a highway. Like human drivers, the AI driver learns what these things are through the imagery and other inputs, so when it “sees” one of them along a road it will have an idea what to expect from it. The AI driver will know that stop signs aren’t likely to dart out into the street, whereas small humans (children) are likely to behave less predictably.

In other words, the AI driver learns, like human drivers do. One of the advantages AI has over humans is that it can learn faster. Engineers can simulate situations that can run in fractions of a second in AI time but might take several minutes in real time. Through repeated simulations and analysis of the outcome, the engineers teach the AI how to “drive.” This includes everything from discerning how much torque to apply to the steering shaft to get the truck to change lanes, to preparing to stop if it sees a ball bounce out onto a road or the door on a parked car open.

Ad Loading...

Predicting the future

“We try to detect what’s out there, where it is around us, and what we think it is, but that only gives you a snapshot of either what’s just happened or what is happening at a moment,” says Waymo’s Stein. “What you want to know is what’s about to happen. As a driver, you’re always trying to predict what’s going to happen, even if you’re not explicitly doing so in your head. You are looking and thinking ahead. That’s what AI does, too.”

And it’s not just observation. Reasoning is part of the equation, too.

“Part of the advances of AI machine learning over the last couple of decades is being able to learn, not only what’s present in an image, or perceptually, but behavior of the world and to predict what might happen next,” Stein says. “The system is constantly predicting, and not just one thing. It doesn’t think, ‘Okay, here’s what’s going to happen,’ because it doesn’t know. It’s asking, ‘What are all the things that could happen,’ and then it starts its reasoning about a variety of possible scenarios and how likely it thinks they all are.”

Robotic truck company TuSimple displayed this truck at the CES electronics show in Las Vegas in 2019. Cameras are located above the cab and on the side of the sleeper. The lidar devices are on the hood and the radar device is on the bumper. Together, the array provides a complete view of the area around the tractor with object-detection and tracking capabilities.   

Photo: Jim Park

A rubber ball alone poses no threat to a truck, but the reasoning that a child could dart out unseen from behind a parked car in pursuit of the ball might cause the truck to ease up on the throttle in preparation for a sudden stop.  

Hazard recognition  

One of the reasons heavy trucks in freeway operations are likely to commercialize at scale before passenger cars is the “relatively predictable” environment in which they operate. Compared to a city street, limited-access freeways are quite tame, especially in rural settings. Not much happens beside or behind the truck — usually.

Ad Loading...

But consider what Daimler and Torc call the “lost cargo scenario.” An object suddenly appears in the middle of the road, something that may have fallen off a truck, or a chunk of peeled-off tire tread, or an animal struck by a previous vehicle. At night, such an object would be more difficult to detect. The lidar may or may not catch it. It would depend on the level of reflectivity of the object. Unless it was metallic, the radar might not detect it either, and cameras would be of limited use in the dark. It might be easier to see in daylight, but if the AI truck is following another truck, it would have limited forward visibility even with lidar.

“We call this a lost-cargo scenario in our development phase, and there is no easy answer to this, because the number of permutations that can result from that is huge,” says Suman Narayanan, director of engineering in the Autonomous Technology Group at Daimler Trucks North America. “This scenario — and of course there are lots of variables — is one we are training the AI on. The best way we can do that is get out there, put more test trucks with safety drivers, and learn from how much we train the system.”

For every imaginable situation, there might be several correct responses leading to a successful outcome, or perhaps a very few, or even none. Narayanan notes that human drivers with all their experience take action based on the circumstances.

“It might be safer to stay on course than to swerve or change lanes,” he says. “The alternatives could pose more danger than staying the course. In most cases, slowing down gives us time to assess the situation, and like humans, the computer also benefits from time.”

Locomation is taking a slightly different approach to automation: human-guided automation. The company believes it can bring automation to the market sooner if it’s less reliant on technology that requires AI and machine learning and a vast array of sensors. A human driver operates the lead truck, while a lighter degree of automation keeps the rear truck in a safe following position. 

Photo: Locomation

In such a scenario, the AI driver doesn’t cycle through a list of pre-programmed options, such as “refrigerator in the middle of the road: plan A, change lanes to the right, plan B, change lanes to the left.” They are trained to think like humans, cycle through the options based on the present situation (traffic in the left lane, can’t go that way) and hopefully choose the safest option.

Ad Loading...

While it might take a human driver a second or two to even realize what’s happening and respond, usually by hitting the brakes, the AI driver can recognize the hazard within hundredths of a second and take action, possibly applying the brakes. The difference in that time interval can mean the difference between a catastrophe and a bruise.

This article originally appeared in the March print edition of Heavy Duty Trucking.

Subscribe to Our Newsletter

More Equipment

Red Kodiak-branded autonomous tractor with Charger-branded trailer backed up to warehouse
Fleet Management•October 30, 2026

Kodiak Lines Up Fleets for Driverless Trucking

An agreement for 75 trucks, a new Texas freight lane, and progress on safety validation move Kodiak closer to its planned driverless highway launch.

Read More →
A GP Transco tractor-trailer crosses a bridge over a river, with trailer side skirts visible beneath the white trailer.
Fuel Smarts•by Deborah Lockridge•October 27, 2026

How GP Transco Builds Fuel Savings a Fraction at a Time

Aerodynamic specs, solar panels, and driver incentives help GP Transco turn small efficiency gains into savings it can reinvest in its people.

Read More →
YouTube thumbnail showing man being interviewed and backup camera and in-cab screen showing backup video
Safety & Compliance•by Deborah Lockridge•October 23, 2026

More Trailer Data Through the Same Seven-Way [Video]

Can trucking’s standard seven-way connector handle more cameras and trailer data? Grote’s Adam Slade shows HDT how the company is using new technology with its 4See trailer system, not only to add a new backup camera but also to expand other capabilities — without adding another connection.

Read More →
Ad Loading...
Rear view camera on back of a semi trailer
Equipment•by Deborah Lockridge•October 23, 2026

Grote: More Cameras, Same Seven-Way Connector

The next-generation 4See rear-view backup camera from Grote uses the standard seven-way connector and supports additional cameras and other trailer data.

Read More →
wide angle photo of trade show booth with big "Mack" sign above, red Mack truck in the foreground
Equipment•by Deborah Lockridge•October 20, 2026

Trucks at ATA's 2026 MC&E in Charlotte, North Carolina [Photos]

From rigs decked out in patriotic America's 250 paint schemes to autonomous trucks and more, check out these photos from ATA's 2026 Management Conference & Exhibition.

Read More →
2027 HDT Top 20 Products logo beside “Nominations Open” text and images of 2026 award winners: a Cummins engine, Lytx dash cam, and Michelin truck tire.
Equipment•by Staff•October 16, 2026

Help HDT Find Trucking’s Top Products

Have you come across a new product that could make a difference for trucking fleets? Nominate it for HDT’s 2027 Top 20 Products Awards by November 9.

Read More →
Ad Loading...
Yellow Volvo VNS heavy-haul sleeper truck with rugged tires and prominent grille, parked at night on a snow-covered lot beside a black truck, with a Volvo construction machine on a trailer behind it.
Equipment•by Wayne Parham•October 14, 2026

Volvo Unveils New VNX Heavy-Haul and Vocational Truck

Volvo Trucks has launched the VNX, a new vocational truck also available as a tractor in day cab and two sleeper configurations, with one heavy-haul model. The Volvo VNX is powered by Volvo's D13 platform, which delivers up to 540 horsepower and 1,950 pound-feet of torque and is EPA 2027-compliant.  

Read More →
Youtube thumbnail showing two people with a truck and the word "fuel" behind them, the HDT Talks Trucking logo, and the words "Small Gains. Big Savings."
Fuel Smarts•by Deborah Lockridge•October 12, 2026

How GP Transco Cuts Trucking Fuel Costs, a Tenth of a Gallon at a Time

What’s another tenth of a mile per gallon worth? GP Transco shares how equipment upgrades and driver coaching turn small gains into meaningful fuel savings.

Read More →
Photo of electric OrangeEV terminal tractor with a Lazer Logistics trailer
Equipment•by Staff•October 6, 2026

Electric Yard Tractors Move Beyond Pilots

Operating-cost savings have overtaken sustainability goals as the leading reason surveyed fleets are adopting battery-electric terminal tractors, according to new NACFE research.

Read More →
Ad Loading...
Two truck tires with a muted highway background
Maintenance•by News/Media Release•October 2, 2026

Continental Introduces New Regional Truck Tires

Continental says its new Generation 5 steer and drive tires for regional operations offer longer tread life, with estimated mileage gains of 22% and 19%, respectively.

Read More →