6 Troubleshooting
Most problems print an exception or a line starting with [Tempo] in the
console. Before you change any settings, check which game pack the robot
loaded (How the robot finds it),
the WPILib year and the pose your odometry reports.
Install and startup
The native library won’t load
Tempo’s planner is a native library named tempo_core.dll on Windows,
libtempo_core.so on Linux, the roboRIO and SystemCore, and
libtempo_core.dylib on macOS. It has to match the operating system and CPU
it runs on, so a desktop build doesn’t run on a robot.
Java and C++
Java prints the platform it looked for and the natives the JAR carries:
Expected JNA resource prefix for this platform: linux-armel
Natives packaged in this JAR: [win32-x86-64/tempo_core.dll, linux-x86-64/libtempo_core.so]
This JAR does NOT package a native for this platform. ...C++ throws a std::runtime_error that says
cannot load libtempo_core.so.
The roboRIO needs linux-armel and SystemCore needs linux-aarch64, so
install the vendordep for your project’s
WPILib version and redeploy.
In a Java desktop test or simulation, a jna.library.path setting that holds
a tempo_core library is used before the one in the JAR. Remove it if it
points at an old or incompatible build.
Python
In Python the library loads on import tempo, so the robot program stops at
its first Tempo import with an OSError:
OSError: Cannot find libtempo_core.so.
Searched:
- .../site-packages/tempo
...If the library is missing on the robot, Tempo wasn’t installed there. Run
robotpy sync and then robotpy deploy again (see
Install Tempo). There are desktop wheels
for Windows and for Linux x86-64 only. On another computer pip installs the
roboRIO’s wheel, and import tempo fails with robotpy-tempo has no native library for this computer.
pip can’t find robotpy-tempo
ERROR: No matching distribution found for robotpy-tempoThe robotpy-tempo version in requires in pyproject.toml isn’t a
release, or the project’s robotpy_version isn’t RobotPy 2026 or 2027.
robotpy-tempo requires RobotPy 2026 or 2027, so pip won’t install it next
to another year’s RobotPy.
A robot that uses the command scheduler also needs robotpy-commands-v2
installed in the same interpreter as RobotPy.
WPILib version mismatch at startup
Each Tempo build is made for one WPILib release, and refuses to run on another. In Python one release runs on RobotPy 2026 and 2027. The 2026 build also runs on a later 2026 release. Java and C++ print:
[Tempo] This Tempo build targets WPILib 2027.0.0-alpha-7; the robot runs WPILib 2027.0.0-alpha-6. ...Python prints this on import tempo and raises it as a TempoException
from Tempo.configure:
[Tempo] This robotpy-tempo runs on RobotPy 2026 and 2027; the robot runs RobotPy 2028.0.0a1 (WPILib 2028.0.0-alpha-1). Move the robot project to RobotPy 2026 or 2027, or install a robotpy-tempo release for WPILib 2028. Tempo does not run on this RobotPy.Install the vendordep or robotpy-tempo release the message names, or move
your project to a WPILib version Tempo supports. Editing the year in the vendordep file doesn’t
work. If a Java or C++ build stops with has invalid year, it has a 2027
vendordep for a different alpha, or an older Tempo.json is still in
vendordeps/.
2026 vs 2027
has every message and rule.
A robot project won’t compile against Tempo
error: package com.tempo does not existJava prints this when the project has no Tempo vendordep.
A C++ project with no Tempo vendordep stops on the first
#include <tempo/...>.
Install the vendordep from Installation. The vendordep and the project have to target the same WPILib version. A 2027 project needs the 2027 names from Java packages and types and JDK 25C++ headers and namespaces.
Tempo’s C++ WPILib layer (the tempo/wpi headers) needs the WPILib command
library.
Autos and planning
A route throws before Tempo is configured
[Tempo] no config is applied yet; call Tempo.configure(...) firstA route was built before Tempo.configure(...) ran.
In C++ the line names Tempo::configure(...), which
tempo::wpi::configure(...) calls.
In Java a route in a field initializer or a static field is built before the
constructor that calls Tempo.configure(...), so the robot program stops at
startup.
Build routes and Setlists after Tempo.configure(...) has run, as in
Write the first auto.
The chooser shows no autos
Only named autos are listed. Registering an auto with no name throws this:
[Tempo] this auto has no name; start the Composer with Composer.named(...) or register it with a nameA Setlist made with new Setlist() (Setlist() in Python,
tempo::Setlist() in C++), or a Composer without named(...), doesn’t
appear unless it’s registered under a name.
TempoAutos.autoRegister(false) (auto_register in Python and C++) removes
every auto that registered itself.
In C++ the chooser holds pointers, so every auto has to outlive the chooser that lists it.
Make each auto once with Setlist.named(...) or Composer.named(...), after
Tempo.configure(...) has run, and keep it in a field. An auto without a
name is listed once it’s registered under one with
TempoAutos.register("Name", auto) (register_auto in C++).
Two different autos with the same name throw
[Tempo] two different autos are named "{name}"; build it once or rename one.
It’s thrown when robot code builds the chooser, reads the registry or calls
prePlan before the robot has first been enabled. After that, the console prints that
the first one keeps the name, and the chooser lists the first. See
Auto chooser.
On WPILib 2027 alpha-7 and beyond, Selectable replaces SendableChooser, so
the chooser is published with Tunables.publish("Auto", autos) in Java,
tunables.publish("Auto", autos) in Python and
wpi::tunables::Publish("Auto", *autos_) in C++.
The auto finished but the robot did nothing
[Tempo] leg 2 (target 5.6, 3.2) has no plannable route; skipped, including its hooksA leg that can’t be planned is skipped with this line, and only its
runOnFailure command starts. The robot also does nothing when the auto was
never started or another command interrupted it. Check these in order:
- The selected auto was started. Either its command was scheduled and the
command scheduler runs every loop, or
auto.start()was called andTempo.update()runs every loop. - No other command took the drivetrain.
- No leg was skipped. The
giveUpslogging item (give_upsin Python and C++) reports each one. - Nonzero robot-relative speeds reach your velocity method.
- Measured odometry follows the commanded motion.
After a run that wasn’t interrupted, Java’s route.handle() answers
droveEveryLeg() (no leg was skipped), arrivedEveryLeg() (no leg was
skipped or missed) and replanFailed() (a replacement plan failed).
A leg can’t be planned when:
- the target is inside an obstacle or an avoid zone, or no path reaches it
- a keep-in corridor is too narrow once clearance is taken off
- the pack, the poses and odometry are for different seasons or origins
The auto plans in Tempo’s GUI but not on the robot
The GUI plans on the pack selected in it. The robot loads a pack
from code first, then tempo/game.toml in the deploy folder, then the pack
that comes with Tempo for its WPILib year. With no deploy file, a route for
any other field is planned on that bundled field.
Copy the pack from the GUI’s
Field screen to
src/main/deploy/tempo/game.toml (deploy/tempo/game.toml beside robot.py
in Python) and redeploy. The desktop app writes the file, and in the browser
you export the TOML and save it there yourself. Name the file game.toml. When the folder on the
robot holds other .toml files too, Tempo loads game.toml, the robot starts
and the console prints this:
[Tempo] ignoring extra game packs in deploy/tempo: old.toml. Only game.toml is loaded. ...A Java or C++ deploy leaves old files on the robot, so a pack you renamed or
deleted in the project is still there. Set deleteOldFiles = true in the
frcStaticFileDeploy block of build.gradle and deploy again to clear them.
robotpy deploy replaces the whole folder, so Python leaves no old files.
A single pack with another name loads with a warning that says to rename it.
Several packs with none named game.toml stop startup:
[Tempo] deploy/tempo holds several game packs and none is named game.toml ({files}); ...A custom game pack won’t load
[Tempo] failed to load game pack from {path}: {error}For a pack given as text in code, {path} reads the supplied TOML. The
parser error after it says what’s wrong with the pack. Check the pack against
Game pack TOML and redeploy after every
change, or rebuild when the pack is a string in code. The
REEFSCAPE 2025 pack is a
working example to compare against.
Motion
The robot drives in the wrong direction
One of the four drivetrain methods uses the wrong frame. The usual causes are:
- the velocity method treats Tempo’s robot-relative speeds as field-relative and converts them
- the pose reset applies its own alliance flip
- robot code mirrors red poses that Tempo already mirrors
Run the checks in Connect the drivetrain without an auto, on both alliances. The pose getter has to return the measured field pose, the reset has to set the pose it’s given, and the output has to drive robot-relative speeds.
On red, Tempo resets odometry to the mirrored start, and a reset with its own alliance flip sends the pose back to the blue one. More often than not the route then drives from the flipped pose with no console line. It can also show up as this warning, which prints at the start of a route when the pose getter doesn’t show the reset:
[Tempo] the pose getter still reported (2.29, 1.47, 0 deg) 0.5 s after the odometry reset to the route's start (15.26, 6.58, 180 deg); the route drives from the reported pose. ...The robot falls behind its path
While a route runs, a robot that keeps reaching less than the commanded speed
prints [Tempo] the follower is holding its path but not its profile: ... with
the two speeds. Lower the velocity limit
(Speed & arrivals) to what the
drivetrain sustains, or measure its top speed again
(Measuring top speed).
A leg drives slower than its limits
[Tempo] leg 2 asks for more than this drivetrain's Speed.FULL: velocity 5.20 m/s against 4.60 m/s. Tempo lowers them to Speed.FULL.A leg’s limits are higher than the drivetrain can reach. Tempo lowers each
limit that is above its Speed.FULL value to that value and leaves the
lower ones as they are. If Speed.FULL itself
looks too low, check the drivetrain values it comes from in
Speed.
A mecanum robot drifts when strafing
[Tempo] the follower is holding its path but not its profile: commanding 3.00 m/s and reaching 2.40 m/s, 80 percent of it. ...Mecanum rollers slip sideways, so the robot strafes slower than commanded and the follower prints the line above. The same slip makes the pose estimate drift sideways during a strafe.
Tempo assumes a strafe efficiency of 0.8 unless you set one. Measure yours
with
Measuring strafe efficiency
and pass the result to MecanumConfigs.strafeEfficiency(...)
(strafe_efficiency in Python and C++). It has to be above 0 and at most 1.
An arrival option changed nothing
[Tempo] arrival(through) carries no speed into leg 3: the corner at leg 2 turns 120 degrees, and rounding it between the two plans is no faster than stopping there, or no rounded path clears the field, so the leg starts from rest. Author a shallower corner, or accept the stop.A through arrival carries speed past a waypoint only where the geometry
and limits allow it. Tempo prints an arrival(through) line when it plans
the route (while it warms up, otherwise as it starts), once for each
through that may have no effect. There are two cases:
- The leg before the waypoint is too short to reach the
through(f)speed. That line starts[Tempo] arrival(through) may shape nothing at leg. - The robot stops at a corner that turns 90 degrees or more, as in the line above. The rest of the line gives the reason.
Read that line before raising a through(f) fraction.
Speed & arrivals lists when
such a corner stops and when it carries speed.
A stop or pause arrival still stops the robot when the next leg is
pre-planned.
Robot loop
The robot loop overruns when Tempo plans
| Console line or setting | Fix |
|---|---|
[Tempo] background planning is off | The config has PlanningConfigs.inBackground(false), so every plan runs in the robot loop. Remove it. |
PlanningConfigs.warmWhileDisabled(false) | Each auto builds and plans its first leg as it starts, and the robot waits meanwhile. Remove it. |
PlanningConfigs.preplanAhead(0) | The robot holds at the start of each planning unit until its plan is ready. Raise it. |
[Tempo] the robot loop thread is not at real-time priority | Raise the loop’s priority. |
Python and C++ spell these in_background, warm_while_disabled and
preplan_ahead.
PlanningConfigs
lists what each setting costs.