ArticleslgStudy

engineering

Layered costmaps

Layered costmaps is a engineering topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Layered costmaps rather than just read about it. In short: Layered costmaps is a method to create and update maps for robot navigation and path planning proposed by David V. Lu in 2014.

Layered costmaps — main illustration
Layered costmaps — illustration

Key takeaways

  • Layered costmaps belongs to engineering; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Layered costmaps to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Layered costmaps from memory before moving on to harder problems.

Reference excerpt

Layered costmaps is a method to create and update maps for robot navigation and path planning proposed by David V. Lu in 2014. During robot navigation, layered costmaps can abstract the realistic environment around the robot into maps that can be comprehended by robot navigation methods. The method consists of more than one layer of costmaps, each of which describes obstacles with different properties. Each layered costmap consists of grids and is represented as a matrix, the values of the matrix elements are related to the risks of grids (the higher the value, the greater the risk and the deeper the colour in the grid). In the layered costmap, the colour of a grid indicates the risk of moving through that grid. There is a high probability of robot collision when the robot moves through a grid with deep colour. When updating a layered costmap, only the area covered by the sensors (such as Lidar) in the map is updated, rather than the entire map.

Standard Layers Layered costmaps is a flexible method, and special categories of layered costmaps can be designed and added to the method depending on the navigation environment of the mobile robot. In Robot Operating System (ROS), some categories of layered costmaps are provided for mobile robot navigation, and they are also the standard layers that are added in most cases.

Static Map Layer The static map layer is at the bottom among all layered costmaps, and it includes the situation of all known static obstacles in the environment before navigation starts. The static map layer can be generated with a SLAM algorithm or can be created from an architectural diagram. If in the static map matrix Msta, the real location (xw,yw) corresponds to the element index (x,y), then an example of the static map layer defining rules is as follows:

Mx,ysta={254(xw,yw) is occupied0otherwise

Obstacles Map Layer The obstacles map layer describes the situation of obstacles detected by sensors during robot navigation. Since the observation distance of the sensor is limited, the obstacles map layer can only be updated in the observation area of the sensor. Assume that there is only one sensor in the scene and it is equipped on the robot, its observation area is a square with side length 2L, and the location of the robot is (xr,yr). If in the obstacles map matrix Mobs, the real location (xw,yw) corresponds to the element index (x,y), then an example of the obstacles map layer defining rules is as follows:

Mx,yobs={254(xw,yw) is occupied0otherwise where (xw,yw) meets that xr−L<xw<xr+L and yr−L<yw<yr+L.

Inflation Layer The inflation layer inserts a buffer zone around each obstacle in order to keep the robot from getting too close to obstacles. Note that these obstacles include obstacles described in the static map layer and the obstacles map layer. In the inflation layer, the grids that are further away from the obstacles have the lower cost. The inflation rule used in the inflation layer is flexible and can be freely designed according to the features of the environment and the robot. For example, a simple inflation rule can be designed with two thresholds and a function. Assume that the maximum radius of the robot is R. If in the inflation matrix Minf, the real location (xw,yw) corresponds to the element index (x,y), then an example of the inflation rules is as follows:

Mx,yinf={254dis(xw,yw)<R0dis(xw,yw)>3⋅R127⋅(3−dis(xw,yw)/R)otherwise where the function dis(xw,yw) represents the distance between point (xw,yw) and the nearest obstacle.

Social Navigation Layers Although social navigation layers are not as necessary as standard layers, when there are pedestrians in the environment, by adding social navigation layers, more information can be included in the map. In standard layers, the speed of obstacles is not considered, but in social navigation layers, the speed of obstacles (i.e., pedestrians) is considered and reflected in costmap layers combined with the social habits of pedestrians.

Proxemic Layer

The proxemic layer reflects the social habits to the surroundings of pedestrians in both moving and stationary situations.

The moving pedestrians do not want obstacles appearing in their moving direction, so in the proxemic layer, the cost in the moving direction of the moving pedestrians becomes larger. The stationary pedestrians do not want robots approaching them from behind, which will make them feel uncomfortable, so in the proxemic layer, the cost in the back direction of the stationary pedestrians becomes larger.

Passing Layer

As in many countries, traffic rules require drivers to drive on the right side of the road, there is the custom of walking on the right side of pathways in many cultures. In order to obey this social habit of pedestrians as much as possible, the pass layer has a higher cost on the right side of pedestrians, guiding the robot to pass by the left side of pedestrians when it is possible.

After layered costmaps

After the creation, the layered costmaps will be continuously updated based on the information provided by the sensors, and the navigation algorithm will drive the robot to reach the destination without collision based on the information provided by the layered costmaps.

Applications

Layered costmaps is the default map creation method when ROS, a popular robot control software framework, controls mobile robots for navigation. The robot developers can control the robots (such as TurtleBot) through ROS to navigate in scenes indoors or outdoors, with or without people. During the navigation process, the layered costmaps will be constantly updated to provide information about the surrounding environment to the robot.

Advantages and disadvantages

Advantages Layered costmaps is very flexible, specific costmap layers can be added, modified and deleted freely according to the requirements, thus flexibly adapting to different navigation environments. Layered costmaps can be updated quickly because only the area covered by the sensors needs to be updated, which allows the robot to have a shorter response time in emergency situations.

disadvantages All costmaps in layered costmaps have the same size and resolution, which causes a large space to store the data when the method is in operation.

See also Robot Operating System Robot navigation motion planning Human–robot interaction SLAM Lidar

References

… excerpt ends here. Continue reading the full article.

Illustrations

Layered costmaps: A schematic of Layered costmaps
A schematic of Layered costmaps
Layered costmaps: A schematic of the proxemic layer.
A schematic of the proxemic layer.
Layered costmaps: A schematic of the passing layer.
A schematic of the passing layer.
Layered costmaps: A schematic of the navigation algorithm.[7]
A schematic of the navigation algorithm.[7]
Layered costmaps: A Turtlebot 3
A Turtlebot 3

Worked examples

Example 1 — a first encounter with Layered costmaps

Start with the simplest possible case. Write down what Layered costmaps claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In engineering, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Layered costmaps before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Layered costmaps ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Layered costmaps

In research
Layered costmaps appears in engineering research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Layered costmaps in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Layered costmaps is common in secondary-school and first-year university syllabi. It links to neighbouring topics Robot navigation, Robotics engineering, so understanding it makes those chapters shorter.
In everyday life
Look for Layered costmaps outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Layered costmaps” →

How to study Layered costmaps in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Layered costmaps means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Layered costmaps out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Layered costmaps in simple terms?

Layered costmaps is a method to create and update maps for robot navigation and path planning proposed by David V. Lu in 2014.

Why does Layered costmaps matter?

Because it connects several engineering ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Layered costmaps?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Layered costmaps.

Tags

  • Robot navigation
  • Robotics engineering

Keep exploring