Skip to content

6.3 Docs example canon: REEFSCAPE 2025

Teaching examples use REEFSCAPE 2025 and the coordinates, IDs, and routines below. The game manual, WPILib AprilTag layout, and public field constants provide the field references. Pages documenting repository fixtures (rebuilt2026*.toml, trace fixtures, and the flagship’s routine roster) retain their actual names.

Coordinates are in meters from the blue-alliance origin in the WPILib convention. +x is toward red, +y is to the blue driver’s left, angles are CCW-positive, and blue faces +x. The field is 17.548 x 8.052 m. The 2025 field is rotationally symmetric, so a red pose is (17.548 - x, 8.052 - y, theta + 180 deg). Docs autos author blue and rely on originAlliance(BLUE).

The canonical pack: reefscape-2025

The teaching examples load website/public/examples/reefscape-2025.toml, a byte-for-byte copy of the bundled assets/fields/reefscape-2025.toml, printed in full on robot-code/game-pack.mdx:

TOML
[meta]
name = "REEFSCAPE 2025"
year = 2025
version = 1

[field]
lengthM = 17.548
widthM = 8.052
origin = "alwaysBlue"
symmetry = "rotational"

[[obstacles]]
id = "bargePost"
shape = "cRectangle"
centerM = [8.774, 4.026]
lengthM = 0.61
widthM = 0.61
mirror = false

[[obstacles]]
id = "reef"
shape = "polygon"
sides = 6
centerM = [4.489, 4.026]
diameterM = 1.663
rotationDeg = 0

The pack has two obstacles and no regions. reef is the blue hexagon, centered at (4.489, 4.026) and 1.663 m across the flats, and its red copy is derived. bargePost is a 0.61 m square at the field center with mirror = false. An example that needs a named region adds a [[regions]] block on its own page (the docs snippet tests append every [[regions]] TOML block a page shows to this pack), or uses a Region written in code or Condition.near.

There is no terrain in 2025 (the field is flat). Pages that teach withTerrain() and crossing say so and demonstrate on a clearly labeled hypothetical ramp. They must not imply REEFSCAPE has one.

Named poses

NamePose (x, y, heading)What it is
START_LEFT(7.58, 5.85, 180 deg)starting line, left half from the blue driver’s view
START_CENTER(7.58, 4.03, 180 deg)starting line, mid-field
START_RIGHT(7.58, 2.20, 180 deg)starting line, processor half
REEF_A(3.21, 4.03, 0 deg)front face, toward the blue wall
REEF_C(3.71, 3.10, 60 deg)front-right face (processor side)
REEF_E(5.27, 3.10, 120 deg)back-right face
REEF_G(5.77, 4.03, 180 deg)back face, toward the barge
REEF_I(5.27, 4.95, -120 deg)back-left face
REEF_IR(5.13, 5.14, -120 deg)I side, face center, bumper clear of the reef
REEF_K(3.71, 4.95, -60 deg)front-left face
REEF_KR(3.85, 5.14, -60 deg)K side, face center, bumper clear of the reef
REEF_KL(3.85, 5.03, -60 deg)K side, left branch
STATION_LEFT(1.13, 7.00, 126 deg)left coral station
STATION_RIGHT(1.13, 1.05, -126 deg)processor-side coral station
PROCESSOR(5.99, 0.60, -90 deg)algae processor on the y = 0 wall
NET_SHOT(7.50, 5.60, 0 deg)barge shot alignment, blue net half
CORAL_MARK_MID(1.22, 4.03, 0 deg)middle staged coral + algae stack

A reef side is named by the first letter of its FMS branch pair (the IJ pair is the I side, and bare A-L stay the official branch names). REEF_<side> is the face approach. It is the face center plus half a robot along the outward normal, with the heading facing the face. REEF_<side>L / REEF_<side>R shift 0.164 m along the face to the left or right branch as the robot faces it. The pair’s first letter is always the left branch.

The canonical autos

Every multi-step example is one of these four, or a truncation of one:

  1. Left3Coral (station-fed robot: funnel + hopper, fed at the coral station). START_LEFT -> score preload L4 at REEF_IR -> STATION_LEFT intake -> L4 at REEF_KR -> STATION_LEFT -> REEF_KL, the K side’s other branch. With leave: 24 pts. The 4-coral extension adds one more station cycle to branch A. The processor-side mirror starts at START_RIGHT and uses REEF_E, REEF_C, STATION_RIGHT.
  2. GroundIntakeVariant: same route structure, but the robot picks coral off the carpet (human player drops early), so the intake waypoint is short of the station wall and run(0, 1, intake) spans the approach. Use it when a page needs a ground-pickup example.
  3. CenterBarge (middle auto): START_CENTER -> preload L4 at REEF_G -> dealgify that face (low algae) -> back up to NET_SHOT, score the net. 1 x L4 + 1 net + leave = 14 pts. The two-algae version is 18.
  4. PushLeave (fallback): drive off the starting line for the 3 leave points, optionally pushing a disabled partner clear of the line first. The kitbot variant scores the trough (L1).

Scoring facts pages may cite

Auto: leave 3, L1 3, L2 4, L3 6, L4 7, processor 6, net 4. Teleop: L1 2, L2 3, L3 4, L4 5, park 2, shallow cage 6, deep cage 12. Preload: one coral, no algae. Staged at auto start: three coral marks per alliance at x = 1.22, y = 2.20 / 4.03 / 5.86 (each one coral with an algae on top), six algae on the reef (alternating between the L2 and L3 pairs), the rest of the coral behind the stations.

Terminology

Sides are named from the blue driver’s view: left (+y) and right (-y). The processor is in the right wall, so “processor side” may gloss the right half. Never name a side after the barge or the cages. Both span the full width at midfield.

Use: reef, branch, trough (L1), L1-L4, coral, algae, coral station, processor, net, barge, cage (shallow/deep), barge zone, reef zone, coral mark, starting line, leave. Never: speaker / amp / note / source (2024), grid / node / cone / cube / charge station (2023), hub / cargo / terminal / hangar / taxi (2022), power cell / initiation line / trench / control panel (2020), depot (fictional). Write “leave”, not “mobility” or “taxi”. The trough is not a “hybrid node”. The climb is a cage hang, not a chain climb.

esc

Loading search...