1.1 Installation
Requirements
- A robot project on WPILib
2026.2.1or later, on a supported 2027 alpha, or a RobotPy project. - A swerve, mecanum or differential drivetrain that reports its pose and measured speeds, can reset its pose, and can drive robot-relative. A simulated drivetrain works.
- You need to know the robot’s drive modules or gearbox, weight, module positions, and frame and bumper size.
- A Windows, macOS or Linux computer. Python needs Windows or Linux x86-64 (glibc 2.34 or newer), because there is no macOS wheel yet. Java simulation on macOS is untested.
1. Open Tempo’s GUI
The GUI draws paths and autos on the field and writes their robot code (Export robot code). You can skip this step for now, because the rest of Getting started writes a first auto by hand.
- Windows: Installer (.exe) or Portable (.exe)
- macOS: Disk image (.dmg), Apple Silicon and Intel
- Linux: AppImage or Debian package (.deb)
Every file is listed on the latest release on GitHub.
Open gui.tempofrc.com. Your work is saved in that browser profile.
2. Install Tempo
- In WPILib VS Code, press
Ctrl+Shift+Pand run WPILib: Manage Vendor Libraries. - Choose Install new libraries (online).
- Paste Tempo’s vendor URL for your season and press
Enter.
The vendor URL for WPILib 2026 (2026.2.1 or later) installs Tempo.json:
https://maven.tempofrc.com/Tempo.jsonWPILib 2027 has a different vendor URL for each alpha, because each alpha
has its own Tempo build, so use the one that matches the GradleRIO version in
your project’s build.gradle
(which 2027 vendordep).
The project builds on JDK 25 or newer.
| WPILib | File | Vendor URL |
|---|---|---|
2027.0.0-alpha-6 | Tempo-wpilib2027-alpha6.json | https://maven.tempofrc.com/Tempo-wpilib2027-alpha6.json |
2027.0.0-alpha-7 | Tempo-wpilib2027-alpha7.json | https://maven.tempofrc.com/Tempo-wpilib2027-alpha7.json |
2027.0.0-alpha-8 | Tempo-wpilib2027-alpha8.json | https://maven.tempofrc.com/Tempo-wpilib2027-alpha8.json |
To upgrade, install again from the same vendor URL.
If you want to mark commands with @TempoCommand so Tempo’s GUI can detect
them automatically when you connect your robot project, add Tempo’s
annotation processor to build.gradle.
def tempoJson = new groovy.json.JsonSlurper().parseText(file("vendordeps/Tempo.json").text)
dependencies {
annotationProcessor "com.tempo:tempo-java:$tempoJson.version"
}def tempoJson = new groovy.json.JsonSlurper().parseText(file("vendordeps/Tempo-wpilib2027-alpha8.json").text)
dependencies {
annotationProcessor "com.tempo:tempo-java:$tempoJson.version"
}On alpha-6 or alpha-7, put your vendordep’s file name in place of
Tempo-wpilib2027-alpha8.json.
Tempo for Python is the robotpy-tempo package. The same version works with
RobotPy 2026 and the RobotPy 2027 alphas. On a 2027 pre-release other than
alpha-6, alpha-7 or alpha-8, Tempo prints a note and runs unchecked.
-
In your project’s
pyproject.toml, addcommands2tocomponentsand Tempo torequires, keeping anything already in those lists:TOML[tool.robotpy] components = ["commands2"] requires = ["robotpy-tempo==0.9.0"]If your robot doesn’t use the command scheduler, you can leave out
commands2. See Without the command scheduler. -
Run
robotpy sync. It installs Tempo into the Python you run RobotPy with and downloads the robot’s copy forrobotpy deploy:Shellpython -m robotpy sync -
Deploy as usual.
robotpy deployinstalls Tempo on the robot along with your code:Shellpython -m robotpy deploy
robotpy deploy runs your project’s tests before it uploads, and if you
don’t have a tests folder it stops with Cannot run robot tests, as test directory was not found!. If that happens, deploy with --skip-tests, or
with --builtin to run pyfrc’s built-in tests:
python -m robotpy deploy --skip-testsOn Windows, type py -3 -m in place of python -m.
To upgrade, change the version in pyproject.toml and repeat steps 2 and 3.
- In WPILib VS Code, press
Ctrl+Shift+Pand run WPILib: Manage Vendor Libraries. - Choose Install new libraries (online).
- Paste Tempo’s vendor URL for your season and press
Enter.
The vendor URL for WPILib 2026 (2026.2.1 or later) installs Tempo.json:
https://maven.tempofrc.com/Tempo.jsonWPILib 2027 has a different vendor URL for each alpha, because each alpha
has its own Tempo build, so use the one that matches the GradleRIO version in
your project’s build.gradle
(which 2027 vendordep).
| WPILib | File | Vendor URL |
|---|---|---|
2027.0.0-alpha-6 | Tempo-wpilib2027-alpha6.json | https://maven.tempofrc.com/Tempo-wpilib2027-alpha6.json |
2027.0.0-alpha-7 | Tempo-wpilib2027-alpha7.json | https://maven.tempofrc.com/Tempo-wpilib2027-alpha7.json |
2027.0.0-alpha-8 | Tempo-wpilib2027-alpha8.json | https://maven.tempofrc.com/Tempo-wpilib2027-alpha8.json |
The vendordep links tempo-cpp, a static library, into the robot program.
GradleRIO deploys tempo-core, the planner’s shared library, next to it.
To upgrade, install again from the same vendor URL.
2b. Offline install (alternative to step 2)
If your computer doesn’t have internet, or the vendor URL doesn’t load, use these steps in place of step 2. They’re the same for Java and C++, and only the bundle and the folder depend on your WPILib version. Python doesn’t have an offline bundle.
-
Download the offline bundle for your project’s WPILib version:
- WPILib 2026: Tempo-offline-2026.zip
2027.0.0-alpha-6: Tempo-offline-wpilib2027-alpha6.zip2027.0.0-alpha-7: Tempo-offline-wpilib2027-alpha7.zip2027.0.0-alpha-8: Tempo-offline-wpilib2027-alpha8.zip
-
Unzip the bundle into the WPILib install folder for that version:
2026 2027.0.0-alpha-62027.0.0-alpha-7and2027.0.0-alpha-8Windows C:\Users\Public\wpilib\2026C:\Users\Public\wpilib\2027_alpha5C:\Users\Public\wpilib\2027_alpha7macOS ~/wpilib/2026~/wpilib/2027_alpha5~/.wpilib/2027_alpha7Linux ~/wpilib/2026~/wpilib/2027_alpha5~/.local/share/wpilib/2027_alpha7WPILib moved its install folder on macOS and Linux with alpha-7.
The bundle has a
mavenfolder and avendordepsfolder, and the install folder already has both, so your computer will ask if you want to replace the existing files. That’s expected, and it’s safe to replace them. The bundle has Tempo’s files (undermaven/com/tempo/andvendordeps/) and the JNA library Tempo’s Java code needs (undermaven/net/). The alpha-6 bundle also has Gson (undermaven/com/google/). The only files it can replace are Tempo’s from an earlier install or an identical copy of one of those libraries, and WPILib’s files and other vendor libraries aren’t touched.On macOS, unzip from Terminal with something like
unzip -o ~/Downloads/Tempo-offline-2026.zip -d ~/wpilib/2026. Don’t drag the bundle’smavenfolder onto the install folder in Finder, because Finder offers to replace the whole folder and that deletes WPILib’s libraries.NoteAlpha-6’s folder is named for its
wpilibYear,2027_alpha5. Alpha-8 installs into the same2027_alpha7folder as alpha-7, so a computer holds one of the two at a time. On Linux, alpha-7 and alpha-8 use$XDG_DATA_HOME/wpilib/2027_alpha7whenXDG_DATA_HOMEis set. -
In WPILib VS Code, run WPILib: Manage Vendor Libraries, choose Install new libraries (offline), and select Tempo.
3. Verify
Add this line to the start of the Robot constructor and run the simulator
with WPILib: Simulate Robot Code.
robotpy init makes an empty robot.py. Put this robot class in it and run
the simulator with python -m robotpy sim. If you already have a robot
class, add the print line to the start of robotInit() (__init__ on
RobotPy 2027).
Add this line to the start of the Robot constructor and run the simulator
with WPILib: Simulate Robot Code. Set includeDesktopSupport = true in
build.gradle first. WPILib’s C++ template sets it to false, and
Simulate Robot Code fails until it’s true.
import com.tempo.Tempo;
// Robot.java: first line of the constructor.
System.out.println("Tempo ready: " + Tempo.isReady());import wpilib
from tempo import Tempo
class MyRobot(wpilib.TimedRobot):
def robotInit(self):
print("Tempo ready:", Tempo.is_ready())#include <fmt/core.h>
#include <tempo/Tempo.h>
// Robot.cpp: first line of the constructor.
fmt::print("Tempo ready: {}\n", tempo::Tempo::is_ready());The console prints Tempo ready: false (or Tempo ready: False in Python).
That is the expected result on this page. It shows that the project built and
started with Tempo installed, and false only says that
Tempo.configure(...) hasn’t run yet.
Connect the drivetrain adds that call.
The line prints true once it runs after the call.
In Java and C++ this step doesn’t load the native planner library. It loads
the first time robot code builds a Tempo config or calls
Tempo.configure(...), and in Python at import tempo. If it’s missing,
the robot program stops at that call. See the native library won’t
load.
If it fails…
Check that the version in requires is a robotpy-tempo release, and that robotpy_version is a RobotPy 2026 or 2027 release.
Deploy with --skip-tests, or with --builtin to run pyfrc’s built-in tests.
Set includeDesktopSupport = true in build.gradle.
Expected here, because the line runs before the Tempo.configure(...) call from Connect the drivetrain. Once it runs after the call, it prints true.
The native planner library didn’t load.