Extending the toolkit¶
Choose the component to extend. Configuration maps existing settings to their owners.
Choose an extension¶
- Vehicles: vehicle YAML, mass, frames, geometry, and calibration.
- Controllers: ROS or native PX4 controller implementation and integration.
- Other components: follow the sections below.
Other extension points¶
Add a trajectory¶
Add a segment in trajectories.yaml. A new segment type needs an analytic sampler in trajectory_generator/src/analytic/ and parser support in trajectory_generator/src/config/yaml.cpp. This YAML and generator are ROS Offboard-owned; new native trajectories are implemented separately in the PX4 firmware catalog. Check derivatives, units, segment joins, and NED/time conventions.
Add recording topics¶
Add topic symbols in config/px4_topics.def and select them through config/recording/ profiles. Toolkit diagnostic topics may use absolute names. Update required/optional topic declarations in the analysis profile.
Add a sequence¶
Add a YAML definition under config/sequences/ with launch steps and arguments. The handoff study illustrates recording paths, manifests, and settle time.
Add an analysis profile¶
Profiles live in analysis/profiles. Define PROFILE_NAME, required/optional topics, analyze, and reporting; register it in PROFILES. Every recorded bag's experiment.json identifies its profile. Reuse bag loading and shared signal/statistics helpers.
For px4_compare, implement comparison_signals with a reference source, common quantities, time origin, and compatible saved trajectories. ULog comparison has its own onboard analysis path.
Add a tool, package, or external source¶
Place user-facing commands in tools/ and component helpers beside their implementation. New ROS packages need package/CMake metadata and the appropriate build-profile inclusion. Pin external sources under config/sources/*.repos.
Verification before contributing¶
In a native development checkout at the repository root:
Test changed interfaces and behavior in the applicable runtime. Record the environment and observed results.