# More questions about Cartographer’s Lua configuration file

**URL:** <https://get-help.theconstruct.ai/t/more-questions-about-cartographer-s-lua-configuration-file/17509>\
**Category:** ROS2 Navigation\
**Created:** [May 24, 2022, 3:20am UTC](https://get-help.theconstruct.ai/t/more-questions-about-cartographer-s-lua-configuration-file/17509 "2022-05-24T03:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluebird](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/b/dec6dc/32.png) [@bluebird](https://get-help.theconstruct.ai/u/bluebird)\
**Post date:** [May 24, 2022, 3:21am UTC](https://get-help.theconstruct.ai/t/more-questions-about-cartographer-s-lua-configuration-file/17509/1 "2022-05-24T03:21:00Z")

</div>

**num\_point\_clouds**  
Is this for 3D Scanner?

**landmarks\_sampling\_ratio**

Tell more about this landmark. Is it the point which localization is known? How to publish the known place to cartographer?

---

<div class="post-metadata">

**Author:** ![rzegers](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/rzegers/32/7010_2.png) [@rzegers](https://get-help.theconstruct.ai/u/rzegers)\
**Post date:** [May 25, 2022, 8:07am UTC](https://get-help.theconstruct.ai/t/more-questions-about-cartographer-s-lua-configuration-file/17509/2 "2022-05-25T08:07:40Z")

</div>

Hello @bluebird,

> **num\_point\_clouds**  
> Is this for 3D Scanner?

Cartographer supports multiple inputs on range data. This means that you could have one, two or three laser scanners on your robot and cartographer could use the data from all of them. Cartographer is flexible in the sense that you can use one of the following message types: sensor\_msgs/LaserScan, sensor\_msgs/MultiEchoLaserScan or sensor\_msgs/PointCloud2 . However you have to pick one type of range data message and stick to it. You can’t mix them.

The ROS2 Navigation Course uses the Turtlebot3 Burger for simulation and the ranging data gets published on topic **/scan**. If you do a  
`ros2 topic info /scan -v`  
You will see that the type of message is `sensor_msgs/msg/LaserScan`.  
This means that we use **sensor\_msgs/LaserScan** messages. This is important because the parameter **num\_point\_clouds** is only relevant if you ranging device uses messages of type **sensor\_msgs/PointCloud2 messages** which is not the case in the simulation of the course.

If, on a different project, you go the route of using sensor\_msgs/PointCloud2 messages **num\_point\_clouds** is the parameter that sets the number of sources that you want to use (1,2,3 or more devices/topics).

> **landmarks\_sampling\_ratio**
> 
> Tell more about this landmark. Is it the point which localization is known? How to publish the known place to cartographer?

Generally speaking landmarks are spatial features which, because of their structure, are easily noticed, quickly recognizable and stand out from the environment. **landmarks\_sampling\_ratio** is used to define the subset of landmark observations to be considered for loop closures. Of course this only applies if you configure cartographer to include landmark observations which is not the case in the ros2 navigation course (you can see that **use\_landmarks = false** ).

Up until know I haven’t worked with Cartographer and landmarks so unfortunately I am not able to help you further in this matter. However if you are interested into going deeper into the specifics of cartographer I can highly recommend to check the original documentation site ([Cartographer ROS Integration — Cartographer ROS documentation](https://google-cartographer-ros.readthedocs.io/en/latest/index.html)). It goes into much greater detail on the wide range of options the cartographer has available.

I hope I could help you with my input.

Cheers,

Roberto
