Goal: run the robot and view 3D LiDAR
At the end of the course, the Atlas3D robot builds a 3D map as shown below and then navigates on it. This module builds the first step of the chain on your computer: the robot in the Gazebo, LiDAR 3D scanning 10 times per second, steering with the keyboard.
Three saved maps from scans with FAST-LIO2 + PGO. The robot runs back to the exact recorded positions while scanning.
| Map | Original points in map.pcd | Keyframe | Distance |
|---|---|---|---|
Hill terrain terrain/run_01 | 3 710 742 | 314 | 174 m |
Warehouse warehouse/run_02 | 3 174 157 | 228 | 94 m |
3-storey car park parking/run_01 | 4 372 379 | 378 | 175 m |
Web map filtered voxel (each 6–15 cm cell holds 1 point), remaining 390–750 thousand points; The original map is 5–11 times thicker. Keyframe are the robot locations selected by SLAM for mapping, about 0.5 m per location, stored in poses.txt. Scan and save map: M01. Keyframe and PGO: M09.
Composite map from scans like this
Each map above is compiled from hundreds of LiDAR scans. Below are one scans, taken when the robot stands at the starting point of the terrain world, similar to the image you see in RViz in lesson 3.
What are you looking at
LiDAR on the robot is modeled after Velodyne VLP-16: 16 laser beams stacked vertically, from −15° to +15°, each beam 2° apart. The whole block rotates, each round taking 1,800 horizontal samples. One scan thus has 16 × 1 800 = 28 800 points, emitted 10 times per second on topic /velodyne_points.
In the scan above there are only 23 722 valid points. The rest are rays that hit nothing within a range of 100 m, mostly rays that slant skyward: choosing ray 15 (+15°) will see that only about a quarter of its points hit trees or hills.
Blind area around robot
The scanning center is 0.778 m high. The lowest ray is angled down 15°, so on flat ground it hits the ground at a distance
0.778 / tan(15°) = 2.90 m
Within that circle LiDAR does not see the ground (orange area in the scene). The closest point in the real scan is 2.76 m from the robot, slightly closer than 2.90 m because the ground around the starting point is not absolutely flat. This figure will return in Part D: a low rock close to the robot is not seen by the LiDAR.
What does this module have?
| Lesson | Task | Expected result |
|---|---|---|
| 1. Check that your computer meets the requirements | Compare configuration, run check_env.sh | LiDAR simulation reaches 10 Hz, RTF ≈ 1.0 |
| 2. Install ROS 2, Gazebo and build workspace | Install ROS 2 Humble, Gazebo Fortress, dependent packages; build workspace | colcon build finished without errors, 11 packages of the course |
| 3. Open the simulation in Gazebo and RViz | bringup.launch.py | Gazebo has robot on hill road, RViz has point cloud |
| 4. Drive the robot and check sensor data | teleop, ros2 topic hz, ros2 topic info | /velodyne_points ~10 Hz, /imu/data ~200 Hz, exactly 1 publisher per topic |
| 5. Exercise | Machine and sensor reporting | Your own measurement chart |
Course structure
| Part | Content |
|---|---|
| A · M00–M02 | Run the entire map scan sequence → save → relocalization → navigate autonomously using available commands |
| B · M03–M06 | Robot, sensor, point cloud, 3D pose, measuring error compared to ground truth |
| C · M07–M10 | SLAM 3D: LiDAR odometry, FAST-LIO2, loop closure, relocalization |
| D · M11–M14 | 3D navigation: traversability map, Nav2 on slopes and floors, capstone |
The LiDAR simulation mechanism in Gazebo and the 16 × 1 800 grid structure of the point cloud are presented in M03 and M04.