2.Handheld lidar mapping

The following workspace contains the entire function package in rplidar_ws.

If you need to transplant it to your own development board, you need to copy all the function packages to the src of the workspace for compilation, and install the relevant environment according to the actual situation.

The approximate steps are as follows, taking ros1-melodic as an example:

2.1 Start the mapping command

Input following command:

If the following screen appears, it means the operation is successful.

image-20231101114958517

2.2 Save map

Input following command:

The map will be saved to the path ~/rplidar_ws/src/oradar_ros/maps/. A pgm picture and a yaml file.

map.yaml

Parameter analysis:

View tf tree

View node communication

2.4 Algorithm information reference website

2.4.1 Mapping algorithm

Gmapping:http://wiki.ros.org/gmapping/

hector_slam:http://wiki.ros.org/hector_slam

hector_slam/Tutorials:http://wiki.ros.org/hector_slam/Tutorials/SettingUpForYourRobot

hector_mapping:http://wiki.ros.org/hector_mapping

karto:http://wiki.ros.org/slam_karto

Cartographer:https://google-cartographer.readthedocs.io/en/latest/

Cartographer ROS:https://google-cartographer-ros.readthedocs.io/en/latest/

2.4.2 Autonomous mapping navigation

rrt_exploration:http://wiki.ros.org/rrt_exploration

rrt_exploration/Tutorials:http://wiki.ros.org/rrt_exploration/Tutorials

2.4.3 Save map

map_server:https://wiki.ros.org/map_server