No license yet
ziFly Quadcopter Flight Controller
Drone · Intermediate
- Score
- Buildability 50 out of 100
- Cost
- Not stated
Software
By PX4 Autopilot, from github.com/PX4/px4_msgs (opens in a new tab)
ROS 2 interface package holding message and service definitions mirrored from PX4 Autopilot's uORB topics, so ROS 2 nodes can exchange data with PX4 firmware.
Checked on GitHub on 28 Nov 2026.
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit ecee9b5 (opens in a new tab), on 28 Nov 2026.
Robotheca's summary of the project's documents, not the creator's words.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/srcEvery stepThe robots on Robotheca that use it or can run it, each with how the link was found.
No license yet
Drone · Intermediate
Found by Robotheca in 仿真/px4_ros_ws/src/my_flight_controller/CMakeLists.txt (opens in a new tab)
Copied word for word from the creator's own documentation; each block links to the lines it comes from.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone https://github.com/PX4/px4_msgs.git
cd ~/ros2_ws
source /opt/ros/jazzy/setup.bash # or humble / kilted / rolling
colcon build --packages-select px4_msgssudo apt install ros-${ROS_DISTRO}-px4-msgsRobotheca doesn't review code. Read it before running it.
Robotheca read the repository at three versions: the summary at 9c21876, the facts and the README at ecee9b5 (read on 28 Nov 2026) and the install commands at 83cd992 (read on 6 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The creator's own README, copied as written: README.md by PX4 Autopilot, at commit ecee9b5, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
ROS 2 message and service definitions for the PX4 Autopilot (opens in a new tab).
px4_msgs is a ROS 2 interface package: it contains only .msg and .srv definitions and the build rules that turn them into the C++/Python interfaces used by ROS 2 applications. The definitions mirror PX4's internal uORB (opens in a new tab) topics, so that a ROS 2 node can exchange them with the autopilot over the uXRCE-DDS bridge (opens in a new tab) (the uxrce_dds_client running on PX4 talks to the MicroXRCEAgent running on the companion side, which publishes/subscribes these topics on the ROS 2 graph).
Because the definitions come straight from PX4, this package is the single source of truth that keeps a ROS 2 workspace ABI-compatible with a given PX4 firmware version.
Clone the branch that matches your PX4 version (see Supported versions) into a colcon workspace and build:
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone https://github.com/PX4/px4_msgs.git
cd ~/ros2_ws
source /opt/ros/jazzy/setup.bash # or humble / rolling
colcon build --packages-select px4_msgs
See Using colcon to build packages (opens in a new tab) and the PX4 ROS 2 User Guide (opens in a new tab) for the full workflow.
Once the package has completed its build-farm release it is installable as a Debian package:
sudo apt install ros-${ROS_DISTRO}-px4-msgs
You can also build a .deb locally — see Building Debian packages.
After sourcing the workspace, the generated interfaces are available like any other ROS 2 message package:
#include <px4_msgs/msg/vehicle_status.hpp>
// ...
sub_ = create_subscription<px4_msgs::msg::VehicleStatus>(
"/fmu/out/vehicle_status", rclcpp::QoS(10).best_effort(),
[](px4_msgs::msg::VehicleStatus::SharedPtr msg) { /* ... */ });
from px4_msgs.msg import VehicleStatus
Note: PX4 publishes with best-effort QoS; subscribers must use a compatible QoS profile (as above) or they will not receive any data. Topic names and directions (
/fmu/out/...,/fmu/in/...) are documented in the PX4 uXRCE-DDS topic list (opens in a new tab).
px4_msgs/
├── msg/ # message definitions (*.msg), generated from PX4 uORB
├── srv/ # service definitions (*.srv)
├── CMakeLists.txt # globs msg/ and srv/ and calls rosidl_generate_interfaces
└── package.xml # ament_cmake, format 3, member of rosidl_interface_packages
px4_msgs is a pure interface package, so the definitions build on any maintained ROS 2 distribution. What ties a checkout to a firmware is the PX4 release line, not the ROS 2 distribution: each PX4 release has its own branch and main tracks PX4 main. Pick the branch that matches the PX4 version you fly, then build it on whichever ROS 2 distribution you run.
| PX4 release | px4_msgs branch |
|---|---|
main (in development) | main (opens in a new tab) |
| v1.18 | release/1.18 (opens in a new tab) |
| v1.17 | release/1.17 (opens in a new tab) |
| v1.16 | release/1.16 (opens in a new tab) |
| v1.15 | release/1.15 (opens in a new tab) |
| v1.14 | release/1.14 (opens in a new tab) |
| v1.13 | release/1.13 (opens in a new tab) |
The ROS 2 distribution fixes the Ubuntu version (REP 2000 (opens in a new tab)). CI builds main against the LTS distributions and Rolling:
| ROS 2 distribution | Ubuntu | Type | Built in CI |
|---|---|---|---|
| Humble | 22.04 (Jammy) | LTS, until 2027 | yes, native runner |
| Jazzy | 24.04 (Noble) | LTS, until 2029 | yes, native runner |
| Rolling | 24.04 (Noble) | development | yes, native runner |
| Lyrical | 26.04 (Resolute) | LTS | yes, in the ros:lyrical container (no 26.04 runner yet) |
| Kilted | 24.04 (Noble) | non-LTS, until 2026 | no |
| Foxy | 20.04 (Focal) | EOL since 2023 | no |
The definitions use only basic message features (built in types, fixed size arrays, nested messages), so any branch also builds on the older distributions if you still need them; the release/* branches were originally tested on Foxy, Humble and Rolling. Windows (Jazzy) and macOS (Jazzy, via RoboStack (opens in a new tab)) are covered by CI as well.
This package is generated, not hand-written — keep these PX4-specific points in mind:
Do not edit msg/ or srv/ here. The definitions are copied from the uORB definitions (opens in a new tab) in PX4-Autopilot. Fix a message at the source (PX4-Autopilot) instead. See CONTRIBUTING.md (opens in a new tab).
Automatic sync. When the uORB definitions change on PX4-Autopilot main, a CI pipeline (opens in a new tab) pushes the updated definitions here, so main stays in lock-step with PX4-Autopilot main.
Flat layout requirement. The ROS 2 generation pipeline requires every definition to live directly under msg/ (no sub-directories) — PX4's msg/versioned/ files are flattened into msg/ during the sync.
Manual sync (only needed for a custom/detached PX4 version): check out the branch for the PX4 version you forked from, then refresh the definitions:
rm -f msg/*.msg srv/*.srv
cp ~/PX4-Autopilot/msg/*.msg msg/
cp ~/PX4-Autopilot/msg/versioned/*.msg msg/
cp ~/PX4-Autopilot/srv/*.srv srv/
Official binaries are produced by the ROS build farm (opens in a new tab) via bloom (opens in a new tab). To build a .deb locally (e.g. to self-host or test packaging), use the bundled builder container, which wraps bloom-generate rosdebian and writes the result to ./out:
./scripts/build_deb_host.sh # default: humble
ROS_DISTRO=jazzy ./scripts/build_deb_host.sh
The same packaging runs in CI for every supported distribution on amd64 and arm64 (Package (.deb) (opens in a new tab)). .deb packages are Debian/Ubuntu-specific; there is no equivalent on Windows or macOS.
Releases are automated: a GitHub release (created from an upstream PX4 version bump) triggers the .deb packaging and a bloom pull request to ros/rosdistro (opens in a new tab), using the PX4/px4_msgs-release (opens in a new tab) release repository. See the release process (opens in a new tab) in CONTRIBUTING for the one-time setup.
Each ROS 2 distribution is released from the matching PX4 release line (see the table above), and bloom only accepts increasing versions per distribution. So a later patch on an older line (e.g. 1.16.3 after 1.17.0) is released to the distributions that track 1.16, and never overrides a newer release already published for another distribution.
Contributions to the packaging, build, CI, and docs are welcome — read the contributing guide (opens in a new tab) and use the pull request template (opens in a new tab). Remember that message/service definitions are changed in PX4-Autopilot (opens in a new tab), not here. All participants are expected to follow our Code of Conduct (opens in a new tab).
px4_msgs claims Quality Level 3 — see the Quality Declaration (opens in a new tab) (REP-2004 (opens in a new tab)).
Released under the BSD 3-Clause License (opens in a new tab).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.