- A map is a representation of the environment where the robot is operating. It should contain enough information to accomplish a task of interest.
- There are different ways to represent a map
- Metric
- Feature based
- Grid based
- Hybrid
- Topological
- Hybrid
- In order to create a map it is necessary to merge the measurements from previous positions and also keep a track of current measurements and the pose of the bot as they are changing.
- To overcome this problem we use a technique called Simultaneous Localization and Mapping(SLAM). It estimates the map of the environment and the trajectory of a moving device using a sequence of sensor measurements.
- There are a lot of SLAM algorithms around. To name a few, Gmapping, Hector mapping, Cartogrpaher, Rtab mapping etc. Here is a little comparison,

Here is an example of mapping using slam-toolbox
by nav2 stack, we will be learning to do it in the next section:

More About Mapping
[Mapping - Using slam-toolbox](https://abstracted-cathedral-04e.notion.site/Mapping-Using-slam-toolbox-122a953eacc38034958ac64df2e61d85)
[Mapping - Saving the map](https://abstracted-cathedral-04e.notion.site/Mapping-Saving-the-map-122a953eacc380428a4eedd9e01e3fd5)