Scored, not just simulated. A current PX4 v1.17 + ROS 2 Jazzy + Gazebo Harmonic SITL stack with Umeyama RMSE gates, VIO stress worlds, and repeatable regression from one Docker image. Software-in-the-loop only, not flight-certified.
- Scored, not just simulated. Every official flight is graded against Gazebo ground truth (evo Umeyama RMSE) with regression gates that fail loudly.
- Current stack, in Docker. PX4 v1.17 SITL, ROS 2 Jazzy, and Gazebo Harmonic in one development image, a C++ OFFBOARD node, optional OpenVINS VIO, and VIO stress worlds.
- Sim-first, not flight-certified. The same launch files are meant to grow toward a real airframe, with a readiness checklist. The verified path today is software-in-the-loop and must not be used to operate a real aircraft without separate safety, legal, and range review.
No Docker build or SITL required. Download the odl-v0.1.0-mc_gps-sample.mcap bag (about 10 seconds, 294 KB) and example report from the v0.1.0 release. Open it in Foxglove with the in-tree layout to see ground truth and EKF2 paths from a passing mc_gps flight. Full walkthrough: docs/QUICKSTART-sample.md.
Build the development image locally from docker/Dockerfile.dev. There is no hosted image; a published GHCR image is not planned.
The repository root is ODL_ROOT. Runtime data (bags, PX4 overlays, results) lives in a sibling dronelab-data directory (ODL_DATA), not in git. Scripts default both from the checkout: a clone at …/opendronelab uses …/dronelab-data. There is no ./odl wrapper yet; use the commands below.
git clone https://github.com/palcode/opendronelab.git
cd opendronelab
export ODL_ROOT="$PWD"
export ODL_DATA="$(cd "$ODL_ROOT/.." && pwd)/dronelab-data"
mkdir -p "$ODL_DATA"
# One-time: build the development image (NVIDIA Container Toolkit recommended).
# Skip this if `opendronelab-dev:latest` is already present on the host.
docker build -t opendronelab-dev:latest \
--build-arg USER_UID="$(id -u)" --build-arg USER_GID="$(id -g)" \
-f docker/Dockerfile.dev docker/
# One-time: build ROS 2 packages into $ODL_DATA (px4_msgs + first-party
# packages). Required before pytest. This is not an image rebuild.
# Skip if $ODL_DATA/ros2_build/ws/install/setup.bash already exists.
docker run --rm \
-v "$ODL_ROOT":/workspace -v "$ODL_DATA":/data \
-u "$(id -u):$(id -g)" -e HOME=/tmp -w /workspace \
opendronelab-dev:latest \
/workspace/scripts/build-workspace.sh
# Headless unit tests (no GPU).
SCENARIOS=pytest ./scripts/run-regression.shscripts/odl-env.sh is sourced by the launch and regression scripts, so you can omit the export lines if you are happy with those defaults.
Expected pytest output (example from a 2026-11-24 run; the count grows as
tests are added, and the gate is pytest_min_passed in
config/regression_thresholds.yaml):
428 passed, 1 warning in 27.67s
[REG] pytest: PASS (428/250)
A scored SITL suite needs an NVIDIA GPU and takes longer:
HEADLESS=1 ./scripts/run-regression.shDocumented mc_gps result (N=5, 2026-11-13, official EKF2 Umeyama xy, gate 0.39 m):
scenario metric result gate status
mc_gps EKF2 Umeyama xy 0.257 m 0.39 m PASS (mean 0.2572 ± 0.0022 m, pass@1 5/5)
Host and day-to-day SITL notes: docs/setup-host.md, docs/compatibility-matrix.md, docs/simulation-guide.md.
- PX4 and ROS 2 users who want a current, scored SITL lab rather than a one-off demo world.
- People coming from older ROS 1 or AirSim stacks who want a maintained PX4-native path (Gazebo Harmonic, uXRCE-DDS, official Umeyama gates).
- Researchers who need repeatable VIO and GPS baselines, mcap bags, and a Foxglove layout — not photorealism claims.
Official scored metric: a global evo Umeyama fit of the estimator against Gazebo ground truth (xy / 3D RMSE, metres). GPS remains the default (EKF2_EV_CTRL=0); OpenVINS is scored in shadow unless vision fusion is opted in. Gates live in config/regression_thresholds.yaml and must not be loosened silently.
Four gating scenarios (documented calibration and check flights):
| Scenario | Vehicle | Official metric | Gate (m) | Documented result |
|---|---|---|---|---|
baseline |
gz_x500_mono_cam |
VIO / EKF2 Umeyama xy | VIO 0.70, EKF2 0.40 | 2026-11-13 check: EKF2 xy 0.258 m, VIO xy 0.445 m |
faster_motion |
gz_x500_mono_cam |
VIO Umeyama xy | 0.42 | Gate from the 2026-11-09 calibration |
wind |
gz_x500_mono_cam |
VIO Umeyama xy | 1.85 | Gate from the 2026-11-09 calibration (includes gusts) |
mc_gps |
gz_x500 (GPS only) |
EKF2 Umeyama xy | 0.39 | N=5 on 2026-11-13: mean 0.2572 ± 0.0022 m, pass@1 5/5 |
low_texture is scored but non-gating (known limitation, VIO gates 0.55 / 0.56 m). faster_motion_aggressive and fw_mission (gz_rc_cessna) are opt-in / reported only; fixed-wing has no official gate yet. Baseline VIO can still jump on the far side of the square — see ROADMAP.md (ODL-86). Full tables: docs/simulation-guide.md, docs/localization.md.
- C++ OFFBOARD square flight as the production mission path, with VIO init hold and retry.
- OpenVINS in shadow (GPL-3, isolated). Vision fusion into EKF2 is opt-in.
- Stress worlds (
low_texture,faster_motion,wind) and a shared propeller-blade mask on the x500 forward camera. - rosbag2 / mcap recording and a Foxglove layout for replay. Raw camera and OpenVINS track topics are opt-in (
RECORD_CAMERA=1,RECORD_OV_FEATURES=1). - Airframes:
gz_x500/gz_x500_mono_camare the gating vehicles; stockgz_rc_cessnais opt-in and non-gating. VTOL and rover are planned, not started.
The editable source is docs/architecture.excalidraw. Teal marks ground truth; orange marks the opt-in EV fusion path and regression gates.
Mermaid source (same topology)
flowchart LR
M[C++ OFFBOARD mission] -->|uXRCE-DDS| P[PX4 v1.17 SITL / EKF2]
P <--> G[Gazebo Harmonic: X500, Cessna, stress worlds]
G -->|camera + IMU| V[OpenVINS VIO, GPL, isolated]
V -.->|EV fusion, opt-in| P
G -->|ground truth| E[evo Umeyama RMSE]
P -->|estimate| E
E --> R[Regression gates: summary.json + report]
P --> B[(rosbag2 mcap)] --> F[Foxglove layout]
Details: docs/architecture.md.
- Linux host with Docker. An NVIDIA GPU and the NVIDIA Container Toolkit are required for scored SITL flights; the headless pytest path does not need a GPU.
- The development image is Ubuntu 24.04 with PX4 v1.17, Gazebo Harmonic, ROS 2 Jazzy, and Micro XRCE-DDS Agent. Build it locally from
docker/Dockerfile.dev(see Quickstart). A hosted GHCR image is not planned. - QGroundControl runs as a native host AppImage when you need a GCS.
Host, GPU, and stack pins: docs/compatibility-matrix.md.
- Simulation guide — day-to-day SITL and the regression suite
- Localization — EKF2, OpenVINS, Umeyama metrics
- Bag review — mcap and Foxglove
- Architecture and compatibility matrix
- Real-drone readiness — checklist only, no flight claims
- Setup, official image, rollback
- Sample bag in Foxglove and v0.1.0 release notes
- NVIDIA redistribution — CUDA/cuDNN wheels and the CPU/base image option
A Zensical docs site is live at https://palcode.github.io/opendronelab. These Markdown guides remain the source of truth.
We are building in public. Now: VIO robustness (ODL-86). Next: fixed-wing gates and a real-hardware testing path. Later: more airframes, a one-command wrapper around the local Docker build, and hardware footage only after a named airframe is flown safely.
See ROADMAP.md and issues labelled roadmap.
Contributions are welcome under CONTRIBUTING.md and the Code of Conduct. A signed Contributor License Agreement is required (Harmony HA-CLA-I v1.0, outbound Option Five).
Start with good first issues. Please use the issue and pull request templates. Do not loosen regression gates. Do not add secrets or personal host paths.
Discussions are open for Q&A, ideas, and show-and-tell. See the welcome post.
Automated agents working in this repository must follow AGENTS.md.
This project is sim-first and not flight-certified.
- The verified path is SITL. SITL numbers are not a flight certification.
- Hardware bring-up is deferred. See docs/real-drone-readiness.md: safety, legal, and range review, a manual override, and validated failsafes are required; placeholders only until an airframe is named.
- Security reports: SECURITY.md (GitHub private vulnerability reporting is enabled).
First-party code is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only). Third-party notices: THIRD_PARTY_NOTICES.md.
Commercial licenses are available from Pallab Sarkar at mailme.pallabsarkar@gmail.com or via https://github.com/palcode. See COMMERCIAL-LICENSING.md.
Pallab Sarkar — mailme.pallabsarkar@gmail.com, https://github.com/palcode.
Built on PX4, ROS 2, and Gazebo, with optional OpenVINS for visual-inertial odometry, evo for trajectory metrics, and MCAP / Foxglove for bag review. Their names appear here in text only; this project does not use those projects' logos.
