Atlas Robotics
Lesson 2/6 · about 15 min

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

ComponentMinRecommendedIdeal
Operating systemUbuntu 22.04 LTS 64-bit, direct installation or dual-boot
CPU4 cores / 8 threads6 cores / 12 threadsIntel Core i5-11400H8 cores / 16 threads or more
RAM8 GB16 GB32 GB
Free disk space15 GB30 GB, SSD60 GB or more, NVMe SSD
GPUIntegrated GPU with OpenGL accelerationNVIDIA GeForce GTX 1650NVIDIA GeForce RTX 3060 or better
VRAMShared RAM4 GB8 GB or more
Driverhardware OpenGL (not llvmpipe)NVIDIA proprietary595.99.02NVIDIA proprietary
RangeNo Gazebo window, small world (ramp, warehouse)The whole course, all worlds, with interfaceRun two SLAM algorithms in parallel for comparison
StatusUnverifiedVerifiedInferred 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

ComponentVersionNotes
ROS 2Humble HawksbillOfficial apt only for Ubuntu 22.04
GazeboFortress (ign gazebo 6.x)Dev machine: 6.18.0. Do not use Gazebo Classic or Harmonic
FAST-LIO2, PGOFASTLIO2_ROS2, commit ghim in slam.reposBuilt from source code, with course patch (lesson 2)
Nav2ros-humble-navigation2Install using apt
EnvironmentStatus
Ubuntu 22.04 direct installation / dual-bootVerified
WSL2 on Windows 11Unverified 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 JazzyNot 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 onlySimulation + FAST-LIO2 + PGO
CPU, average (peak)1.6 threads (1.7)2.7 threads (3.0)
RAM of the processes in the course1.2 GB1.5 GB
GPU, average (peak)29 % (42 %)27 % (45 %)
extra VRAM compared to idle (peak)120 MB119 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

ComponentCapacity
Workspace sau when build (build/ + install/)77 MB
Five saved maps in 4 worlds (map.pcd + poses.txt)220 MB
Rosbag only records /velodyne_points921 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

LineIf error/warning
OpenGL: llvmpipeThe 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 GBBuild FAST-LIO2 must have 1 thread (the build command in lesson 2 is already set). Use small world.
Missing apt packageScript prints line sudo apt install ..., copy and run.
LiDAR < 9.5 Hz or RTF < 0.95GPU 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 GPUScript 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:

f_{\text{measure}} \approx f_{\text{nominal}} \times \text{RTF} \qquad \text{RTF} = \frac{\Delta t_{\text{simulation}}}{\Delta t_{\text{Real}}}

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_PARTITION variable 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).

Check that your machine is powerful enough · Module 0: Install & run the simulation — Atlas Robotics