Goal: see the entire system running
M01 runs four commands and has the robot walking on its own. This module opens those commands: each command starts which nodes, which node talks to which node over which topic, who broadcasts the robot position, which configuration file is read.
The diagram below is taken from a system running on a dev machine (world ramp), in three modes of M01. Click each node to see details.
| Mode | Command | Node | Topic | TF edges |
|---|---|---|---|---|
| Only bringup | bringup.launch.py | 7 | 17 | 13 |
| + SLAM (scan) | + fastlio2.launch.py | 10 | 24 | 15 |
| + Navigation | + navigation.launch.py | 25 | 68 | 15 |
Counts excluding RViz (runs with rviz:=false) and infrastructure topics /rosout, /parameter_events.
Three layers
Simulation + robotGazebo, sensor bridge, wheel controller, robot model. Replace it with a hardware driver and you'll become a real robot.
SLAMFAST-LIO2 for pose estimates 10 times per second; PGO (when scanning) or localizer (when running on old maps) keeps the location on the map.
Navigationtraversability map, filter obstacles, find route, track, perform recovery.
The upper layer only uses the topic and TF of the lower layer, not directly calling each other's code. So SLAM is a separate command that runs on bringup, and can also run on real robots without any modifications.
What does this module have?
| Lesson | Task | Expected result |
|---|---|---|
| 1. Node and topic: how programs exchange data | ros2 node list, ros2 node info, ros2 topic info -v | Counts nodes, shows who broadcasts / receives a topic |
| 2. TF tree: which node indicates the robot's location | view_frames, tf2_echo | Tree map → odom → body → base_footprint, knows the node transmitting each edge |
| 3. Why must maps be gravity-aligned? | Turn on SLAM when the robot is standing on a slope | The map is still flat where it is flat |
| 4. Read and understand the launch file | Read 4 project launch files, --show-args | Know what each command starts and where the parameters are transmitted |
| 5. Exercise | Draw a two-mode TF tree | Each edge records the correct transmitting node |