Contributing to Tempo
This book is for work on Tempo itself: the Rust core, the language bindings, the editor, the docs site and releases. The guides for robot teams are on the docs site. Paths in these guides are relative to the repository root unless a guide says otherwise.
What Tempo is made of
One Rust crate plans and drives every route. The bindings reach it through a C ABI and the editor reaches it through WebAssembly.
rust/core (crate tempo-core)
planning, trajectories, following, replanning, leg sequencing
|
+------------------------+------------------------+
| |
C ABI: rust/core/src/ffi.rs rust/wasm (wasm-bindgen)
| |
+--------+---------+----------------+ gui
| | | (browser and Tauri desktop)
java/ python/ cpp/
(vendordep) (wheels) (vendordep)
| | |
+--------- WPILib robot programs ---+
2026 (roboRIO) and 2027 (SystemCore)The core does the path search, the velocity profile, the follower output each
robot loop, the replan decision and the path of a Setlist’s connecting drive.
The bindings convert WPILib types and commands to and from the C ABI and
compile a Setlist’s steps into a command tree. They also decide whether a
connecting drive is needed between two routes, using the shared rule in
tests/fixtures/sequencing/routeJoins.json, and they plan nothing themselves.
One source tree builds artifacts for WPILib 2026 and 2027.
| Path | Contains |
|---|---|
rust/core | Field geometry, planning, trajectories, following, sequencing, the C ABI |
rust/wasm | WebAssembly bindings over the same core |
java, python, cpp | Robot-facing APIs, native loading, packaging, binding tests |
gui | Browser editor, Tauri desktop shell, editor tests |
assets | Bundled game packs, brand source, fonts |
tests/fixtures | Cross-language expected results, frozen traces, ABI and API snapshots |
examples | Public robot templates with Tempo added (examples/) |
tests/robot | The C++ docs-snippet robot and the Java simulation gate |
website | The docs site, and the landing page in website/landing |
docs/contributing | This book |
Chapters
| Chapter | Pages |
|---|---|
| 1. Start here | Working on Tempo, Repository layout, How a route runs |
| 2. Rust core | Core modules, Path planning, Trajectory and heading, Following, limits and calibration, Replanner and auto runtime, Replanning and rejoin, Setlists and route joins, Game packs, Angular constraints |
| 3. FFI and bindings | FFI contract, Wrapper policy, Two WPILib seasons, Fixtures and embeds, Pins and surfaces |
| 4. Build and test | Building and testing, Simulation validation, Testing on Windows |
| 5. Editor | Web and desktop builds, GUI design guide, Editor design system, GUI authoring coverage, Ending early and robot actions |
| 5. Guided course | Guided editor course, Course curriculum |
| 6. Docs and websites | Docs site, Docs style guide, Docs example canon |
| 7. Versions and licenses | Stability and versioning, Licenses and notices |
Where to start for a task
| Task | Start with |
|---|---|
| First week on the code | Working on Tempo, then How a route runs |
| Change planning or path shape | Core modules, then Path planning |
| Change what happens when the robot drifts | Replanning and rejoin |
| Change how a Setlist runs routes or hooks | Setlists and route joins |
| Add an FFI function or a Composer option | FFI contract, then Wrapper policy |
| Something differs between 2026 and 2027 | Two WPILib seasons |
| A fixture, pin or trace check fails | Fixtures and embeds, then Pins and surfaces |
| Add or change a game pack | Game packs |
| A build or test fails | Building and testing |
| A robot loop runs slow | Wrapper policy, then Replanner and auto runtime |
| Change the editor | Web and desktop builds, then the GUI design guide |
| Change the docs site | Docs site and the Docs style guide |
Work goes on a dedicated branch and reaches master through a reviewed pull
request (Working on Tempo).