Skip to main content
The nexus logo: flight stack simulation with Newton

PyPI Docs

lint cpu-pytest gpu-pytest docs codecov

Newton Isaac Sim Isaac Lab Rerun Python

Built on Newton, Warp and OpenUSD, nexus lets you develop drone subsystems and test them as part of the full flight stack.

What nexus adds to Newton

  • One deterministic loop. Each tick runs the sensors, the flight stack and Newton's step, always in that order. On a GPU the tick replays as CUDA graphs. On CPU a flight with the Proportional Integral Derivative (PID) controller repeats bit for bit, which a CI gate checks. Execution
  • Components you can swap. Sensors, estimators, guidance, controllers, and force elements fill fixed roles under one contract. Write your own, declare it in the vehicle's Universal Scene Description (USD) file beside Newton's physics, and the loop runs it as it runs the shipped ones. Your own component
  • PX4 in lockstep. PX4 Software In The Loop (SITL) flies the vehicle in MAVLink lockstep with the loop. QGroundControl and offboard scripts connect through the run's links. Running SITL flights
  • RTX sensors from Isaac Sim. A vehicle that declares a camera or lidar starts an Isaac Sim container beside the loop. It renders each frame at the loop's poses, and the loop never runs inside Isaac Sim. RTX cameras and lidar
  • One vehicle file, three uses. PX4 flies the vehicle's USD file in CI, Isaac Lab trains a policy on the same file, and the design examples take gradients through Newton from it. A catalog pins each vehicle and scene by its hash. Examples
  • Every tick recorded. The Recorder keeps every row of a run, and the Logger writes it to a Rerun recording. Logging

Installation

The framework requires Python 3.12, Linux, and a CUDA-capable GPU. It ships on PyPI. Install it with uv, which fetches Python 3.12 if the machine lacks it. If you don't have uv, install it first:

uv venv --python 3.12
uv pip install nexus-uav

Optional extras: policy adds PyTorch, examples adds jerk-limited trajectories, acados adds Nonlinear Model Predictive Control (NMPC) code generation, and all equals policy plus examples.

For development, clone the repo and sync it:

git clone https://github.com/breuerpeter/nexus.git
cd nexus
uv sync                 # install the framework
uv run nexus run --vehicle astro_max_base --scene empty   # fly a vehicle against PX4 SITL

Quickstart

Run the command-line tool with a vehicle and a scene. astro_max_base declares PX4 as its controller, and empty is flat ground:

uv run nexus run --vehicle astro_max_base --scene empty

Run a self-contained example. Every example records a Rerun .rrd, and --list names them:

uv run -m nexus_uav.examples sampling_mpc

The decoupled SITL flight workflow, nexus plus PX4 SITL plus QGroundControl, with the port map, lives in Running a SITL flight.

Documentation

The full docs, with the design, the guide, the examples and the API reference, are at https://breuerpeter.github.io/nexus/.

Contributing

Contributions are welcome. See Contributing for setup and the conventional-commit / pre-commit workflow, and Conventions for the framework-versus-example rule.

License

Licensed under the Apache License 2.0. © 2026 Peter Breuer

The hosted vehicle and scene assets and the Astro photograph in the banner aren't Apache-licensed. See License.

Metadata

Release files for nexus-uav 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nexus-uav 0.7.0
File Size Uploaded Provenance Actions
nexus_uav-0.7.0.tar.gz 371.0 kB Without provenance Details for nexus_uav-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nexus-uav 0.7.0
File Interpreter ABI Platform Actions
nexus_uav-0.7.0-py3-none-any.whl Python 3 none any Details for nexus_uav-0.7.0-py3-none-any.whl

Total release size: 810.5 kB

Release files / nexus_uav-0.7.0.tar.gz

Download URL nexus_uav-0.7.0.tar.gz
Size 371.0 kB
Tags Source
SHA-256 checksum
How to use checksums
22834ec5c4c7f45b88a0d50cce2ebcdc6ed8b2865215412ff2f766100f42a40b
BLAKE2b-256 checksum
How to use checksums
5f66662be5bbd578866863b30431dd6de1ffd88d8a10ef43568cf40538522271
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nexus_uav-0.7.0-py3-none-any.whl

Download URL nexus_uav-0.7.0-py3-none-any.whl
Size 439.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0ac97e01b67677138fa8bd483d4b1324d938fa1f038443880bc326732b950a9
BLAKE2b-256 checksum
How to use checksums
2314a149739d66300f950acc1de30b5418bdcfa13edf70b54ab5fab561d10695
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nexus-uav 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page