Goal: the robot gets to the platform on your map
In world ramp, you drive the robot around to let FAST-LIO2 build a 3D map, save the map, restart and let the robot find its position on that map. Then just press a point on the 0.6 m high platform, the robot will find its way, climb a 6° slope and stop at the right place.
Real run on dev machine: Nav2 goes to three destinations on the scanned map in turn.
| Goal | Path | Time | Recovery | Goal error |
|---|---|---|---|---|
| 1. Middle of the platform | From the starting point, go up the west slope, z 0 → 0.6 m | 32 s | 0 | 0.24 m |
| 2. East slope foot | Cross the platform, down the east slope | 22 s | 0 | 0.21 m |
| 3. Starting point | Round south, avoiding the pillars and crates | 51 s | 0 | 0.22 m |
Recovery are Nav2's unjamming movements (turn in place, reverse). Zero means the robot goes all the way to the goal. The target deviation is less than 0.25 m because Nav2 is configured to consider arrival when the robot is within a radius of 0.25 m around the target.
Four steps, four commands
| Step | Main command | ? | Module explained |
|---|---|---|---|
| 1. Scan | fastlio2.launch.py + keyboard driving | Growing 3D map in RViz | M08 (FAST-LIO2), M09 (PGO) |
| 2. Save | /pgo/save_maps | map.pcd + poses.txt | M10 |
| 3. relocalization | fastlio2.launch.py mode:=localization | Robot knows where it is on the old map | M10 |
| 4. Go yourself | navigation.launch.py + "2D Goal Pose" in RViz | The robot automatically goes to the click point | M11 (traversability map), M12 (Nav2) |
In this module, just run the command and check the results step by step. Each block is opened and studied carefully in the module listed in the last column.
What does this module have?
| Lesson | Task | Expected result |
|---|---|---|
| 1. Scan 3D maps with FAST-LIO2 | Bringup ramp, FAST-LIO2 + PGO, drive a loop | The map includes a floor, two ramps, and a platform; The trajectory ends at the starting point |
| 2. Save the map and read the recorded files | Call the save service and read the two files just recorded | success: true, map.pcd about 20 MB, poses.txt about 100 lines |
| 3. localization robot on saved map | Run localization on saved map, try "2D Pose Estimate" | ICP alignment accepted after about 5 seconds, scans the same map |
| 4. Send the goal to let the robot navigate itself | navigation.launch.py, placed on the podium | Robot reaches the platform, 0 recovery |
| 5. Exercise | Redo the whole series with world warehouse | Robot walks independently between two rows of shelves |
Repo has the scanned ramp map available at src/atlas3d_mapPCDs/ramp/demo (the same map in the scene above). If a step fails, use this map to continue with the following steps, then go back and fix it.