How Does SLAM Work for Self-Driving Cars?

Today, we rely on GPS and Google Maps to tell us how to get from point A to point B. Similarly, Simultaneous Localization and Mapping (SLAM) is how autonomous vehicles find their way in the world. In this article, we will discuss how autonomous vehicles use SLAM to navigate the environment around them.

What Is SLAM?

Simultaneous Localization and Mapping involves two things: mapping and localization. The purpose of SLAM is to build a globally consistent representation of the environment. Let’s briefly cover the two main aspects.

Why Mapping Is Important

Currently available standard definition (SD) or ADAS maps are used in infotainment systems to assist human drivers in performing turn-by-turn navigation. However, the accuracy and data quality of these maps do not meet the requirements needed for autonomous vehicles (AVs). 

Maps built for AV purposes are called high-definition (HD) maps. These maps are centimeter-level accurate, which is orders of magnitude higher than what SD maps provide. HD maps are highly accurate representations of the road, with features including lane geometry, traffic signs, intersections, live map updates, and more.

They also provide visibility beyond the range of on-board sensors like lidar and cameras. Companies like HERE, TomTom, and Ushr provide HD Maps as a service today.

Why Localization Is Important

Localization is the answer to ‘Where am I’ on the map. It allows AVs to find their position and orientation. When a vehicle is localized, it can determine its relationship with other elements on the map. For example, the distance to the next traffic light or which exit is coming up next. Most importantly, it can answer whether the car is within its desired lane or not.

Localization feeds into the rest of the AV technology stack, such as decision-making and motion-planning.

Why Simultaneous?

SLAM is considered a chicken-and-egg problem. Localization and mapping need to be done together to get an updated estimate of the map along with an updated location of the vehicle. As a result, when ADAS developers and engineers work with an accurate map, they are more easily able to localize.

Autonomous vehicles can find themselves driving in places where maps currently do not exist and through areas they have never visited before. Having an HD map of the entire world is a difficult task! Using SLAM, the vehicle can autonomously navigate an unknown environment by building a map and simultaneously localizing itself on that map.

Simultaneous Localization and Mapping (SLAM) has advantages over traditional GPS, especially in urban areas with tall buildings.
SLAM has advantages over traditional GPS, especially in urban areas with tall buildings.

Why Is SLAM Needed?

GPS can give us an accurate position of where we are in the world, but GPS by itself is unreliable, especially in urban areas with tall buildings.

GPS depends on many factors, like the open sky and the number of satellites in line of sight. Even when GPS can help provide coarse localization, SLAM can be used to provide a more accurate estimate of the vehicle’s location.

Autonomous vehicles have a host of sensors to solve the ‘Where am I’ or the localization problem, which we discuss in the following section.

Implementation Methods

The SLAM community has grown rapidly in the last couple of decades, enabling large-scale applications ranging from robotics to the self-driving car industry.

SLAM is implemented using multi-sensor fusion-based techniques. Sensors include (but are not limited to) light detection and ranging (lidar), an inertial navigation system (INS), a Global Positioning System (GPS), and high-definition maps (HD Map). 

The need for a variety of sensors is due to the number of challenges when working with SLAM. For example, the sensor data obtained can be very noisy. Each sensor has its own biases and error sources, causing some degradation. Other challenges come from autonomous vehicles moving at higher speeds, which limits the sensor types and adds to algorithm complexity. Most importantly, multiple sensors allow for redundancy, which is needed to adhere to AV safety standards.

Some well-known implementation techniques are the Kalman Filter, Particle Filter, Graph-SLAM, and many more. These methods are based on principles of probability, which implies that SLAM itself only provides a likelihood of whether the car is within a five-centimeter radius of the traffic pole or the chances that a pedestrian is in the way.

Many open-source projects, such as ROS, Apollo, and Autoware, provide partial or full implementations of algorithms needed for SLAM in a variety of robotics applications.

2024 ADAS Guide Banner

What Does The Future Look Like?

Is SLAM a solved problem? That is still a debate.

The correct answer depends on the application, performance requirements, and challenges present in the environment. For example, slow-speed robotics applications in confined environments are significantly easier than fast-moving automobiles in highly dynamic environments. Across the industry, engineers are devising new frameworks for developing and validating safe automated driving systems.

SLAM in autonomous vehicles still has numerous challenges and is pushing the frontiers of research as autonomous vehicles also have an ethical aspect of driving on public roads. The SLAM community is hard at work addressing these and other challenges in the interest of safer roads for us all.