Skip to content
Tempo on GitHub (opens in a new tab)

5.2 Game packs

The Field screen shows a game pack, with the TOML on the right and the field it describes on the left. Paths and autos plan against the pack marked Active field. The format is on Game pack TOML.

The Field screen with REBUILT 2026 marked Active field: the field preview with its obstacles, terrain and regions outlined, and the TOML tab showing the meta, field and first obstacles blocks above Pack OK, 17 shapes
View full size (opens in a new tab) ↗

Choosing the planning field

Click the pack’s name in the header, or press Ctrl+B, to list the packs, and pick one to open it. Opening a pack doesn’t change what paths plan on. Click Use this pack in the header to make the open pack the active field.

Each pack’s menu in the list has Duplicate, Rename and Delete. Click New pack to start an empty pack.

The packs bundled with Tempo are in the list from the first start, and you can edit, rename and delete them like any other pack. After one is deleted, the list has a Restore default packs button that adds back the missing ones.

Importing a pack

Click Import, in the header or in the pack list. Choose a .toml file or paste the TOML into the dialog, then click Import. If the TOML doesn’t parse, the dialog shows the error and nothing is imported.

Editing the TOML

Obstacles, terrain and regions are typed into the TOML and can’t be drawn on the field. The panel on the right has three tabs. The TOML tab holds the pack text, which is checked as you type, and Ctrl+/ comments out lines. The Elements tab lists the shapes in the pack, and clicking one selects it on the field. The Reference tab has a searchable example for each part of the format, with a button that inserts the example at the cursor.

Clicking a shape on the field selects its block in the TOML. The bar under the TOML reads Pack OK or names the line with the error, and while there’s an error the field keeps showing the last version that parsed.

Click Export TOML to download the pack. The download leaves out the field image and the AprilTag layout.

Calibrating the field image

The Image & calibration button on the field opens a panel that lines up a picture of the field with the pack’s coordinates. The picture is only a background, and obstacles always come from the TOML.

  1. Pick Use the bundled field or Choose image….
  2. Click Detect field bounds. If it doesn’t find the walls, type the pixel bounds, or click Drag into place and drag the picture.
  3. Check the Scale line, in pixels per meter. It warns when the scale across and the scale down don’t match.

Click Use full image to set the bounds back to the whole picture. To show AprilTags on the field, click Attach a layout… in the same panel and pick a WPILib tag layout JSON file.

Sending the pack to the robot

The robot loads tempo/game.toml from its deploy folder unless robot code sets a pack. For Java and C++ that’s src/main/deploy/tempo/game.toml. For Python it’s deploy/tempo/game.toml, with the deploy folder beside robot.py.

In the desktop app, connect the robot project on the Code screen first. After that, Copy to robot in the Field header shows the destination and the file’s contents. Copy field writes the active field there and keeps a backup of the old file. The same copy is game.toml in the Code screen’s file list, where Live update can keep it up to date.

In the browser, click Export TOML and save the file to the deploy path.

esc

Loading search...