Check that your computer meets the requirements
Gazebo Fortress builds 3D LiDAR using GPU, while FAST-LIO2, PGO and Nav2 run on the same machine. All measurements in the course are taken from the configuration in column Recommended.
Hardware
| Component | Min | Recommended | Ideal |
|---|---|---|---|
| Operating system | Ubuntu 22.04 LTS 64-bit, direct installation or dual-boot | ||
| CPU | 4 cores / 8 threads | 6 cores / 12 threadsIntel Core i5-11400H | 8 cores / 16 threads or more |
| RAM | 8 GB | 16 GB | 32 GB |
| Free disk space | 15 GB | 30 GB, SSD | 60 GB or more, NVMe SSD |
| GPU | Integrated GPU with OpenGL acceleration | NVIDIA GeForce GTX 1650 | NVIDIA GeForce RTX 3060 or better |
| VRAM | Shared RAM | 4 GB | 8 GB or more |
| Driver | hardware OpenGL (not llvmpipe) | NVIDIA proprietary595.99.02 | NVIDIA proprietary |
| Range | No Gazebo window, small world (ramp, warehouse) | The whole course, all worlds, with interface | Run two SLAM algorithms in parallel for comparison |
| Status | Unverified | Verified | Inferred from measurements |
Recommendation Column is a machine used to build and measure an entire course. Ideal column inferred from load measurements below, not tested yet.
Software
| Component | Version | Notes |
|---|---|---|
| ROS 2 | Humble Hawksbill | Official apt only for Ubuntu 22.04 |
| Gazebo | Fortress (ign gazebo 6.x) | Dev machine: 6.18.0. Do not use Gazebo Classic or Harmonic |
| FAST-LIO2, PGO | FASTLIO2_ROS2, commit ghim in slam.repos | Built from source code, with course patch (lesson 2) |
| Nav2 | ros-humble-navigation2 | Install using apt |
| Environment | Status |
|---|---|
| Ubuntu 22.04 direct installation / dual-boot | Verified |
| WSL2 on Windows 11 | Unverified Gazebo's LiDAR GPU requires hardware OpenGL via WSLg |
| Virtual Machine (VirtualBox, VMware) | Not recommended Typically no GPU acceleration, LiDAR runs on CPU |
| Ubuntu 24.04, ROS 2 Jazzy | Not supported yet Addendum switching to Jazzy + Harmonic |
Actual load on dev machine
Measured in tools/sim_test/measure_load.py in world terrain, without opening Gazebo and RViz windows: first time only run simulation (39 seconds), next time add FAST-LIO2 + PGO while the robot drives itself in a circular path (86 seconds). One sample is taken every second.
| Simulation only | Simulation + FAST-LIO2 + PGO | |
|---|---|---|
| CPU, average (peak) | 1.6 threads (1.7) | 2.7 threads (3.0) |
| RAM of the processes in the course | 1.2 GB | 1.5 GB |
| GPU, average (peak) | 29 % (42 %) | 27 % (45 %) |
| extra VRAM compared to idle (peak) | 120 MB | 119 MB |
Gazebo takes the lion's share: about 1.4 threads and 1 GB of RAM. FAST-LIO2 adds about 0.8 threads, peaking at 1.1 threads. In windowless mode, the LiDAR GPU only uses about 120 MB more VRAM.
Most of the RAM on the machine is actually taken up by other applications: when nothing was running, the dev machine used 9.0 GB for the desktop and open applications. That's why the Recommended column is 16 GB even though the SLAM chain only needs 1.5 GB. Gazebo, RViz and Nav2 interfaces increase the above numbers; That part measures at M01.
Disk space
| Component | Capacity |
|---|---|
Workspace sau when build (build/ + install/) | 77 MB |
Five saved maps in 4 worlds (map.pcd + poses.txt) | 220 MB |
Rosbag only records /velodyne_points | 921 600 bytes × 10 Hz ≈ 9.2 MB/s, or 553 MB per minute |
Rosbag accounts for the most: a 5-minute recording to measure the error in M06 is about 2.8 GB. The 15 GB threshold is for several such records plus maps.
Run test script
Script only requires Ubuntu 22.04 + ROS 2 Humble + Gazebo Fortress, no course repo required. If your device does not have ROS 2, just run it: items 1–2 still indicate whether the hardware is sufficient, and item 3 preprints the command to install the missing package.
Once there is a repo (after lesson 2):
bash ~/atlas_sim3D/tools/check_env.sh
Script does 5 things: checks the operating system; hardware (CPU, RAM, disk, GPU, OpenGL); ROS 2 and Gazebo and 18 apt course packages needed; Is the workspace built (only when running in the repo); Then build a small world with a VLP-16 LiDAR, run the windowless Gazebo for about 20 seconds and measure.
Rerun everything on the dev machine (real time 18.7 seconds, section 5 accounts for the majority):
Read the results
| Line | If error/warning |
|---|---|
OpenGL: llvmpipe | The device is drawing images using CPU, there is no GPU driver yet. With NVIDIA: sudo ubuntu-drivers autoinstall then reboot. The Gazebo will still open but the LiDAR will be very slow. |
| RAM < 16 GB | Build FAST-LIO2 must have 1 thread (the build command in lesson 2 is already set). Use small world. |
| Missing apt package | Script prints line sudo apt install ..., copy and run. |
| LiDAR < 9.5 Hz or RTF < 0.95 | GPU or CPU cannot keep up. You can still learn, but you should run Gazebo without a window (headless:=true, lesson 3) and use world ramp, warehouse instead of terrain. |
| Gazebo fails to start LiDAR GPU | Script prints the last 3 lines of Gazebo's log. Usually due to the GPU driver or running via SSH there is no screen. Submit the SUMMARY when asking questions. |
RTF: real time factor
RTF (real-time factor) is the ratio between the time elapsed in the simulation and the time elapsed in real life. RTF 1.0: one simulated second takes exactly one real second. RTF 0.5: the computer only counts half a simulated second for every real second, everything in Gazebo slows down to half.
The sensor in the Gazebo plays according to simulation clock: LiDAR always 10 times per simulation second. But tools like ros2 topic hz measure according to real watch. So:
Example in lesson 4: world terrain has 170 trees, 3 houses, hills, so it is heavier than the test world of the script; dev machine runs it at RTF 0.97 and ros2 topic hz /velodyne_points prints about 9.4 Hz not 10.
Script measures RTF by reading the simulated time on topic /stats of Gazebo twice, 5 real seconds apart.
Measures 32 Hz instead of 10 Hz
The first time I wrote the script, counting LiDAR messages in 5 seconds output 163, or 32 Hz, for a sensor set at 10 Hz. When printing the time (stamp) of each message to find the cause, I encountered two phenomena:
- As soon as a new listener arrives, Gazebo Fortress's LiDAR GPU transmits about 77 consecutive scans, each step simulating 1 ms per scan, then returning to 10 Hz. The script now skips the first 1.5 seconds before calculating.
- In a later attempt, the previous Gazebo was not completely turned off and still played the same topic name: stamp of the two sources alternately. The script now uses a separate
IGN_PARTITIONvariable for each run so you don't mishear another Gazebo.
The principle applies to the whole course: before trusting a number, check that there is exactly one source (lesson 4, ros2 topic info).