Native SITL¶
Install PX4 SITL, Gazebo Harmonic, ROS 2 Jazzy Desktop, MAVProxy, controllers, and analysis tools on Ubuntu 24.04. Tested versions are pinned in config/versions.env.
Clone and install¶
From a host terminal:
git clone https://github.com/ANCL/px4-dev-toolkit.git
cd px4-dev-toolkit
./setup/install.sh sitl
./px4/build_sitl.sh
The installer fetches the configured PX4 ref and pinned other SITL sources, then builds the ROS 2 workspace and installs analysis dependencies. ./px4/build_sitl.sh builds the configured PX4 SITL target separately.
Pinned external sources¶
The PX4 repository and branch (or commit) are selected in config/sources/px4.env. The SITL source manifest continues to pin the other external sources.
setup/fetch_sources.sh sitl preserves existing full source sets rather than resetting them. If only part of a pinned source set exists, fetching stops rather than mixing revisions. Resolve partial checkouts deliberately; see Installation troubleshooting.
Rebuild and prepare a runtime shell¶
The installer already builds ROS 2. After changing a maintained ROS package, from the repository root run:
Source the runtime environment in each new terminal used for manual ROS 2 commands:
The runtime helper must be sourced, not executed. Launch the simulator separately using ./tools/sitl start.
Verify and continue¶
SITL uses MAVProxy by default (GCS=mavproxy in config/runtime/sitl.env). QGroundControl is optional: install the managed AppImage with ./setup/install_qgroundcontrol.sh and choose GCS=qgc if that frontend is needed. The provided virtual-joystick staging demonstrations require the MAVProxy configuration, so retain the default for the first flight.
From the repository root:
Continue with First simulation.