K11: Sync#
This page gives the skill K11 sync of the procedure tier, as built (section 6.2 of Farm Benchmark Suite: Design, work package WP9). The code is Fast/acres_batch/skills/sync.py, and the harvester is in Fast/acres_batch/harvester.py. The framework is on the page Skills: Framework and Contract. The tests are in Tests/Fast/test_skill_sync.py. Each number on this page comes from Results/Benchmarks/skill_k11_validity.json.
The task T5 uses this skill (T5: Rendezvous with a Working Harvester).
1. The Skill#
The vehicle drives beside a moving machine, a harvester that works its pass. It must keep a position window beside the harvester for the transfer time and then leave. The vehicle approaches over the stubble, matches the speed of the harvester, holds the window and drops back.
| Argument | Unit | Meaning |
|---|---|---|
route |
– | The route of the route table of the scene: the approach and the line beside the pass |
lon, lat |
m | The centre of the window: the midpoint of the rear axle in the frame of the harvester (along its heading, to its left) |
tol_lon, tol_lat |
m | The half sizes of the window: 1 m along and 0.5 m across |
transfer_s |
s | The time to hold the window |
limit_s |
s | The time limit of the call |
exit |
m | The arc of the end of the leave on the route. With 0 the leave ends when the vehicle is clear behind the harvester. |
2. The Harvester#
The harvester is a scripted, kinematic machine on a known pattern (harvester.py). It is a model with no measurement behind it. The pattern, the speeds, the stops and the sizes are assumed values.
- The machine. A body of 9.0 m x 3.4 m and a header 1.8 m deep in front of it. The header is as wide as the cut of the scene. Both are things of the scene. The environment writes their poses at each physics step.
- The pattern. The harvester works a pass at its work speed. At the end of the field it turns into the next pass. The turn is an omega turn on the headland, with a radius of 6.5 m, at 1 m/s. The script has an acceleration of 0.3 m/s² and a deceleration of 0.6 m/s².
- The stops. The harvester stops without notice at the stop times of the scene, for their durations.
- The auger. The harvester unloads to the side of the stubble. In a back-and-forth pattern this side changes from one pass to the next. Thus the auger of the model unloads to either side. A real combine unloads to its left only.
- The state. Each scene has the clock of the script, the rate of the clock and the state
working,stoppedorfull(harvester.step). With a full bunker the clock slows to rest at 0.6 m/s². The harvester stands until the level is 500 kg below the capacity (K12).
3. Definition and Verifier#
At each decision while the call runs, the environment writes these monitors. With \((q_{lon}, q_{lat})\) the midpoint of the rear axle in the frame of the harvester:
- A stretch is a set of decisions in the window with gaps out of the window of 2 s or less. \(t_{cur}\) is the time in the window of the current stretch. \(t_{in}\) is the largest \(t_{cur}\) (T5: \(T_{in}\)).
- \(e2_s\) is the integral of \(e_{lat}^2 + e_{lon}^2\) over the time in the window of the current stretch. The RMS error of the stretch is \(\sqrt{e2_s / t_{cur}}\).
- When \(t_{in}\) reaches the transfer time, \(t_{cur}\), the gap and \(e2_s\) keep their values: the measures of the stretch of the transfer. A later pass beside the harvester on the way to the exit does not change them.
- \(d_{min}\) is the least gap between the box of the vehicle and the boxes of the harvester. The test uses the corners and the middles of the sides of each box.
- The crush \(C\) is a sum over the decisions. Each decision adds the share of the vehicle box in the standing crop, times the width of the box and the distance.
- The vehicle is clear when the front of its box is 2 m or more behind the body of the harvester.
A call succeeds when all these conditions are true:
- The controller reports success, and \(t_{in} \ge\)
transfer_s. - With
exit0, the vehicle is clear at the decision of the report. With an exit, the vehicle is within 3 m of the exit point and slower than 0.3 m/s at the end (the end condition of K1). - \(C \le 5\ \text{m}^2\), no contact occurs, and the vehicle keeps its corridor.
- The report comes before the time limit.
The start condition is a scene with a harvester. The standing crop is the crop of the field at the start, less the cut part of the first pass. The model does not follow the cut of the later passes. Thus the crush there is an upper bound.
4. Scenes and Splits#
A field has stubble beside the pass that the harvester works: the passes before it are cut. Headlands of 24 m are at both ends of the field. The harvester works at 1 m/s to 2 m/s with a header 6 m to 9 m wide. It starts 15 m to 80 m into its pass and stops 0 to 2 times for 4 s to 20 s.
The window keeps a gap of 2.0 m to 3.0 m between the body of the vehicle and the side of the header. It keeps the centre of the body beside the tip of the auger. The transfer time is 30 s to 90 s. The route runs on the line beside the pass. The field is long enough for the approach, the transfer and the leave. A stop adds time, not distance.
| Family | Start |
|---|---|
behind |
The vehicle at rest on the line, 25 m to 60 m behind the window |
headland |
The vehicle on the near headland, 10 m to 30 m out from the line. A turn of 90 degrees takes it into the line. |
The vehicle is the Polaris or the Maxxum. The scenes are procedural, and the split is by the seed. The test bank of the check has 64 scenes: 30 behind, 34 headland (22 maxxum, 42 polaris).
5. Reference#
The reference is the classical reference of T5 in the design. It predicts the harvester along its known pattern, and a linear MPC gives the speed. The prediction is a constant speed on the pattern, and rest when the radio reports a stop. The approach over the stubble is the route of the scene. The framework has no route that a controller makes during an episode, so the Hybrid A* of the design is not in the reference.
The MPC (motion.SyncMPC) has the model \(e_{k+1} = e_k + \Delta t\,(u_k - v_t)\) and \(u_{k+1} = u_k + \beta (c_k - u_k)\). Here \(e\) is the error along the line, \(u\) the speed, \(c\) the speed command and \(v_t\) the predicted speed of the harvester. \(\beta\) is the lag of the speed loop of the kind. The horizon is 16 steps of 0.5 s.
The cost is \(\sum Q e^2 + R (u - v_t)^2 + \rho (c_k - c_{k-1})^2\) with the constraint \(0 \le c \le v_{max}\). Projected gradient steps solve the problem. On a straight pass the linear model does not change with time.
The reference is a state machine with these states:
approach: the reference drive follows the route. Its stop arc is 12 m behind the centre of the window. Within 25 m of the centre:match.match: the MPC gives the speed. A chunk along the line has this speed (motion.along_route). The checker checks it first. In the window:hold.hold: the same control. When the stretch has the transfer time:leave. When the stretch ends:match.leave: the vehicle stands, and the harvester drives on. When the vehicle is clear: success, orexitwith an exit arc.exit: the reference drive to the exit arc. At the end condition: success.
The reference fails with the reason late when the centre of the window is off the route for 20 s.
6. Results#
The test bank of 64 scenes, the privileged setting, an NVIDIA L40S shared with other work, 13 Nov 2026. The code that ran is commit dfd3194, with the defaults of the vehicle and the Maxxum fitted to ACRES Core (the default tractor). The tree had changes of the result files only.
| Controller | SR | Wilson 95 % | Ends | Logs That Repeat |
|---|---|---|---|---|
| Do-nothing | 0 / 64 | 0.00 to 0.06 | timeout 64 | 64 of 64 |
| Reference | 64 / 64 | 0.94 to 1.00 | success 64 | 64 of 64 |
With the defaults of 11 Nov 2026 (the follower, the gear logic and the holds of the vehicle, the body of each row: batch.md, Defaults of the Settings) the reference passes 64 of 64 (success 64), against 64 of 64 with the old defaults on the same tree. The do-nothing controller passes 0 and every log repeats (Results/Benchmarks/defaults_switch/after/sync.json, defaults_switch.json). These runs are before the fixes of 12 Nov 2026.
The solvable bank has 64 scenes.
| Measure of the Reference | Value |
|---|---|
| Time in the window over the transfer time (smallest of the successes) | 1.00 |
| Time to the first entry into the window (median, 90th percentile) | 41.0 s, 68.1 s |
| RMS window error of the stretch of the transfer (median, largest) | 0.20 m, 0.45 m |
| Least gap to the harvester (smallest, median) | 2.17 m, 2.68 m |
| Crushed crop (largest) | 0.00 m² |
| Time of a call (median, 90th percentile) | 111.5 s, 143.4 s |
| Successes in scenes with a stop of the harvester | 38 of 38 |
The run of the reference took 39.1 s of wall time for the 64 scenes (556 agent-decisions/s), the run of the do-nothing controller 69.6 s (478 agent-decisions/s). These speeds are indicative.
7. Findings#
- The stretch of the transfer is kept. The first form measured the RMS error of the last stretch. In T5 the vehicle passes the harvester again on its way to the lane and enters the window for a moment. Thus the last stretch was not the stretch of the transfer in each scene of T5.
- A copy to the device is a host sync. The first form of the window test made constant tensors from Python lists at each decision. The test of host syncs found them. The constants are now made once for each device.
- The progress on the route is not the arc of the vehicle. The reference projects the vehicle and the centre of the window onto the route window (
motion.route_arc).