mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Adds documentation for the SITL containers and .deb packages introduced in #26495. The containers are now live on Docker Hub: [`px4io/px4-sitl:latest`](https://hub.docker.com/r/px4io/px4-sitl) and [`px4io/px4-sitl-gazebo:latest`](https://hub.docker.com/r/px4io/px4-sitl-gazebo). The main addition is a [Try PX4 Simulation](https://docs.px4.io/main/en/dev_setup/try_px4) page that leads with a single `docker run` command and gets someone flying in under a minute. It lives in Getting Started, right after Recommended Hardware/Setup, so it's one of the first things new users see. The existing `.deb` package reference has been moved from `packaging/px4_sitl_deb.md` to `simulation/px4_sitl.md` and expanded to cover both containers and `.deb` packages on one page. Sections are ordered by how people use them: what's available, install, configure, connect QGC/MAVSDK, connect ROS 2. Other changes: - README now has a "Try PX4" section with the docker one-liner above "Build from Source" - Landing page (`index.md`) reworked to lead with "Try PX4" before "For Developers" - Toolchain page (`dev_env.md`) gets a tip redirecting simulation-only users to pre-built packages - `getting_started.md` and `SUMMARY.md` updated with links to the new pages - Simulation index tip updated to mention containers alongside `.deb` packages The SIH container image is published as `px4io/px4-sitl` (renamed from `px4io/px4-sitl-sih`) so the default lightweight option carries the simplest name. The Gazebo image remains `px4io/px4-sitl-gazebo`. Also upgrades all GitHub Actions in the SITL workflow to Node.js 24 compatible versions (`actions/checkout@v6`, `actions/cache@v5`, `actions/upload-artifact@v7`, `actions/download-artifact@v8`, `docker/setup-buildx-action@v4`, `docker/build-push-action@v7`) to fix the Node.js 20 deprecation warning ahead of the June 2026 deadline. --------- Signed-off-by: Ramon Roche <mrpollo@gmail.com> Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
142 lines
7.2 KiB
Markdown
142 lines
7.2 KiB
Markdown
<p align="center">
|
|
<a href="https://px4.io">
|
|
<img src="docs/assets/site/px4_logo.svg" alt="PX4 Autopilot" width="240">
|
|
</a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<em>The autopilot stack the industry builds on.</em>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://github.com/PX4/PX4-Autopilot/releases"><img src="https://img.shields.io/github/release/PX4/PX4-Autopilot.svg" alt="Release"></a>
|
|
<a href="https://zenodo.org/badge/latestdoi/22634/PX4/PX4-Autopilot"><img src="https://zenodo.org/badge/22634/PX4/PX4-Autopilot.svg" alt="DOI"></a>
|
|
<a href="https://discord.gg/dronecode"><img src="https://img.shields.io/discord/1022170275984457759?label=discord&logo=discord&logoColor=white&color=5865F2" alt="Discord"></a>
|
|
</p>
|
|
|
|
<p align="center">
|
|
<a href="https://www.bestpractices.dev/projects/6520"><img src="https://www.bestpractices.dev/projects/6520/badge" alt="OpenSSF Best Practices"></a>
|
|
<a href="https://insights.linuxfoundation.org/project/px4"><img src="https://insights.linuxfoundation.org/api/badge/health-score?project=px4" alt="LFX Health Score"></a>
|
|
<a href="https://insights.linuxfoundation.org/project/px4"><img src="https://insights.linuxfoundation.org/api/badge/contributors?project=px4" alt="LFX Contributors"></a>
|
|
<a href="https://insights.linuxfoundation.org/project/px4"><img src="https://insights.linuxfoundation.org/api/badge/active-contributors?project=px4" alt="LFX Active Contributors"></a>
|
|
</p>
|
|
|
|
---
|
|
|
|
## About
|
|
|
|
PX4 is an open-source autopilot stack for drones and unmanned vehicles. It supports multirotors, fixed-wing, VTOL, rovers, and many more experimental platforms from racing quads to industrial survey aircraft. It runs on [NuttX](https://nuttx.apache.org/), Linux, and macOS. Licensed under [BSD 3-Clause](LICENSE).
|
|
|
|
## Why PX4
|
|
|
|
**Modular architecture.** PX4 is built around [uORB](https://docs.px4.io/main/en/middleware/uorb.html), a [DDS](https://docs.px4.io/main/en/middleware/uxrce_dds.html)-compatible publish/subscribe middleware. Modules are fully parallelized and thread safe. You can build custom configurations and trim what you don't need.
|
|
|
|
**Wide hardware support.** PX4 runs on a wide range of [autopilot boards](https://docs.px4.io/main/en/flight_controller/) and supports an extensive set of sensors, telemetry radios, and actuators through the [Pixhawk](https://pixhawk.org/) ecosystem.
|
|
|
|
**Developer friendly.** First-class support for [MAVLink](https://mavlink.io/) and [DDS / ROS 2](https://docs.px4.io/main/en/ros2/) integration. Comprehensive [SITL simulation](https://docs.px4.io/main/en/simulation/), hardware-in-the-loop testing, and [log analysis](https://docs.px4.io/main/en/log/flight_log_analysis.html) tools. An active developer community on [Discord](https://discord.gg/dronecode) and the [weekly dev call](https://docs.px4.io/main/en/contribute/).
|
|
|
|
**Vendor neutral governance.** PX4 is hosted under the [Dronecode Foundation](https://www.dronecode.org/), part of the Linux Foundation. Business-friendly BSD-3 license. No single vendor controls the roadmap.
|
|
|
|
## Supported Vehicles
|
|
|
|
<table>
|
|
<tr>
|
|
<td align="center">
|
|
<a href="https://docs.px4.io/main/en/frames_multicopter/">
|
|
<img src="docs/assets/airframes/types/QuadRotorX.svg" width="50" alt="Multicopter"><br>
|
|
<sub>Multicopter</sub>
|
|
</a>
|
|
</td>
|
|
<td align="center">
|
|
<a href="https://docs.px4.io/main/en/frames_plane/">
|
|
<img src="docs/assets/airframes/types/Plane.svg" width="50" alt="Fixed Wing"><br>
|
|
<sub>Fixed Wing</sub>
|
|
</a>
|
|
</td>
|
|
<td align="center">
|
|
<a href="https://docs.px4.io/main/en/frames_vtol/">
|
|
<img src="docs/assets/airframes/types/VTOLPlane.svg" width="50" alt="VTOL"><br>
|
|
<sub>VTOL</sub>
|
|
</a>
|
|
</td>
|
|
<td align="center">
|
|
<a href="https://docs.px4.io/main/en/frames_rover/">
|
|
<img src="docs/assets/airframes/types/Rover.svg" width="50" alt="Rover"><br>
|
|
<sub>Rover</sub>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<sub>…and many more: helicopters, autogyros, airships, submarines, boats, and other experimental platforms. These frames have basic support but are not part of the regular flight-test program. See the <a href="https://docs.px4.io/main/en/airframes/airframe_reference.html">full airframe reference</a>.</sub>
|
|
|
|
## Try PX4
|
|
|
|
Run PX4 in simulation with a single command. No build tools, no dependencies beyond Docker:
|
|
|
|
```bash
|
|
docker run --rm -it -p 14550:14550/udp px4io/px4-sitl:latest
|
|
```
|
|
|
|
Open [QGroundControl](https://qgroundcontrol.com) and fly. See [PX4 Simulation Quickstart](../dev_setup/px4_simulation_quickstart.md) for more options.
|
|
|
|
## Build from Source
|
|
|
|
```bash
|
|
git clone https://github.com/PX4/PX4-Autopilot.git --recursive
|
|
cd PX4-Autopilot
|
|
make px4_sitl
|
|
```
|
|
|
|
> [!NOTE]
|
|
> See the [Development Guide](https://docs.px4.io/main/en/development/development.html) for toolchain setup and build options.
|
|
|
|
## Documentation & Resources
|
|
|
|
| Resource | Description |
|
|
| --- | --- |
|
|
| [User Guide](https://docs.px4.io/main/en/) | Build, configure, and fly with PX4 |
|
|
| [Developer Guide](https://docs.px4.io/main/en/development/development.html) | Modify the flight stack, add peripherals, port to new hardware |
|
|
| [Airframe Reference](https://docs.px4.io/main/en/airframes/airframe_reference.html) | Full list of supported frames |
|
|
| [Autopilot Hardware](https://docs.px4.io/main/en/flight_controller/) | Compatible flight controllers |
|
|
| [Release Notes](https://docs.px4.io/main/en/releases/) | What's new in each release |
|
|
| [Contribution Guide](https://docs.px4.io/main/en/contribute/) | How to contribute to PX4 |
|
|
|
|
## Community
|
|
|
|
- **Weekly Dev Call** — open to all developers ([Dronecode calendar](https://www.dronecode.org/calendar/))
|
|
- **Discord** — [Join the Dronecode server](https://discord.gg/dronecode)
|
|
- **Discussion Forum** — [PX4 Discuss](https://discuss.px4.io/)
|
|
- **Maintainers** — see [`MAINTAINERS.md`](MAINTAINERS.md)
|
|
- **Contributor Stats** — [LFX Insights](https://insights.lfx.linuxfoundation.org/foundation/dronecode)
|
|
|
|
## Contributing
|
|
|
|
We welcome contributions of all kinds — bug reports, documentation, new features, and code reviews. Please read the [Contribution Guide](https://docs.px4.io/main/en/contribute/) to get started.
|
|
|
|
## Citation
|
|
|
|
If you use PX4 in academic work, please cite it. BibTeX:
|
|
|
|
```bibtex
|
|
@software{px4_autopilot,
|
|
author = {Meier, Lorenz and {The PX4 Contributors}},
|
|
title = {{PX4 Autopilot}},
|
|
publisher = {Zenodo},
|
|
doi = {10.5281/zenodo.595432},
|
|
url = {https://px4.io}
|
|
}
|
|
```
|
|
|
|
The DOI above is a Zenodo concept DOI that always resolves to the latest release. For a version-pinned citation, see the [Zenodo record](https://doi.org/10.5281/zenodo.595432) or our [`CITATION.cff`](CITATION.cff).
|
|
|
|
## Governance
|
|
|
|
The PX4 Autopilot project is hosted by the [Dronecode Foundation](https://www.dronecode.org/), a [Linux Foundation](https://www.linuxfoundation.org/) Collaborative Project. Dronecode holds all PX4 trademarks and serves as the project's legal guardian, ensuring vendor-neutral stewardship — no single company owns the name or controls the roadmap. The source code is licensed under the [BSD 3-Clause](LICENSE) license, so you are free to use, modify, and distribute it in your own projects.
|
|
|
|
<p align="center">
|
|
<a href="https://www.dronecode.org/">
|
|
<img src="docs/assets/site/dronecode_logo.svg" alt="Dronecode Logo" width="180">
|
|
</a>
|
|
</p>
|