K3: Pass Gate#
This page gives the skill K3 pass_gate of the procedure tier, as built (section 6.2 of Farm Benchmark Suite: Design, work package WP9). The code is Fast/acres_batch/skills/gate.py, and the name of the skill in code is gate. The framework is on the page Skills: Framework and Contract. The tests are in Tests/Fast/test_skill_gate.py. Each number on this page comes from Results/Benchmarks/skill_k3_validity.json.
1. The Skill#
The vehicle drives through an opening in a fence. The opening is narrower than 1.6 times the width of the vehicle with its implement. While another vehicle uses the gate, the vehicle waits before it. The gate is a resource of items.py (kind gate) with one holder at a time.
| Argument | Unit | Meaning |
|---|---|---|
route |
– | The route of the route table of the scene |
res |
– | The resource of the gate |
arc |
m | The arc of the fence line on the route |
width |
m | The width of the opening |
stop |
m | The stop line: the arc that the front must not pass while the row does not hold the gate |
beyond |
m | The rear of the footprint must be this far past the fence |
limit_s |
s | The time limit of the call |
2. Definition and Verifier#
The footprint is the body of the checker for the row (vehicle.body): the vehicle, its implement and its trailer at the trailer's heading of now. The fence is a line across the route at arc, 0.2 m thick. It has one opening of width at the centre of the route. Let \(F\) be the point of the fence on the route and \(u\) the heading of the route there. The environment writes these monitors at each decision:
- \(c\) is each corner of each box of the footprint. Thus \(r\) is the rearmost part of the footprint along the route, measured from the fence line.
touch: a box of the footprint overlapped a part of the fence at a decision.intrude: the body of the row was in the region of the gate while the row did not hold the gate (items.resource_step).t_free: the first time at which the gate was free for the row (no holder, or the row itself).
A call succeeds when all these conditions are true:
- The controller reports success, and
throughis true at the decision of the report. - No touch, no intrusion and no contact occur, and the vehicle keeps its corridor.
- The report comes before the time limit.
To hold the gate, a controller claims it with the claim stream. A row that enters the region of the gate without the hold intrudes. The start condition is a gate resource, with the fence ahead of the front of the body, or a footprint that is not through yet. The second part is for a call again after a breakdown in a procedure, when the vehicle stopped in the opening (P1). The bank starts each vehicle before the stop line, so its results do not change.
3. Scenes and Splits#
The road has a half width of 2.9 m to 3.8 m. It starts with a straight of 5 m to 25 m. In 60 % of the scenes a bend of 15 m to 30 m radius through up to 50 degrees follows. A straight then goes to the fence, and the road goes on for 40 m past it. From the end of the bend to the stop line the road is straight for 20 m to 30 m. The vehicle starts at rest 10 m to 40 m before the stop line.
| Vehicle | Width of the Footprint | Opening |
|---|---|---|
| The Polaris | 1.6 m | 2.15 m to 2.51 m |
| The Maxxum with the folded sprayer | 2.6 m | 3.25 m to 4.11 m |
| The Maxxum with the trailer of the square baler | 2.6 m | 3.25 m to 4.11 m |
| The Maxxum with the front loader | 2.6 m | 3.25 m to 4.11 m |
| The Maxxum with the front loader and a bale on the spear (the load) | 2.6 m | 3.25 m to 4.11 m |
The narrowest opening of each vehicle is the opening that the checker accepts at a crawl, with some margin. In half of the scenes a second vehicle stands in the opening and holds the gate. It is the Polaris, an actor of the scene: the suite drives it with the skill K1. It drives off along the road after 25 s to 90 s.
The corridor is the road up to the fence, a strip along each face of the fence, and the opening. The opening is one capsule from 7.0 m before the fence to 5.5 m after it, with a half width of half the opening. The checker tests the cover discs of each point of a chunk against the four capsules with the most room at that point (check.NEAR). The point is the rear axle, or the trailer's axle for the boxes of the trailer. Thus the capsule of the opening must hold each axle whose body crosses the fence.
The fence is not a thing of the scene. The point rule of the checker keeps 0.62 m from each scanned point. A gate narrower than 1.6 times the width leaves less than that. The corridor rule of the checker keeps the body inside the opening, and the verifier tests the footprint against the fence (touch).
The scenes are procedural. The split is by the seed (bank.SPLIT_SEED). The test bank of the check has 64 scenes. 9 have the Polaris, 13 the folded sprayer, 17 the baler's trailer, 9 the front loader and 16 the front loader with a bale. 33 scenes have the vehicle in the gate. The ratio of the opening to the width of the vehicle is 1.25 to 1.58.
4. Reference#
The reference is a state machine with the states approach and pass, and the terminal states:
approach: the reference drive follows the route, with the route cut 2 m before the stop line. From 30 m before the stop line, the reference claims the gate.pass: the row holds the gate. The reference drive follows the route to its end, and the reference keeps its claim.- In
pass, the reference reports success when the footprint is through. It readsthroughfrom the monitors of the decision before: the privileged state.
5. 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 was clean.
| 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/gate.json, defaults_switch.json).
The reference passes each vehicle of the bank. The checker refused no chunk of the reference.
| Measure of the Reference | Value |
|---|---|
| Rear of the footprint past the fence at the report (smallest, largest) | 0.65 m, 2.00 m |
| Time of a call (median, 90th percentile) | 40.0 s, 86.0 s |
| Time of a call with the gate free at the start (median) | 16.0 s |
| Time from the departure of the other vehicle to the report (smallest, largest) | 13.0 s, 15.0 s |
| Idle time of a call with the other vehicle (median) | 48.5 s |
For the 64 scenes of two agent rows, the do-nothing controller took 38.8 s of wall time and the reference 23.8 s. This is 900 to 1,150 agent-decisions/s. These speeds are indicative.
6. Findings#
- The checker tests a disc against the capsules with the most room at the axle. The first corridor had the route's own chain of capsules, cut to the opening. A capsule of the chain ended 1.9 m before the fence, and the next one crossed it. At the rear axle 4 m before the fence the capsule across the fence was not one of the four with the most room. The checker then refused each chunk whose front went through the opening. The capsule of the opening is now long enough to hold the axle.
- A narrow gate needs the vehicle aligned. In the first scenes, a bend 12 m before the gate left the tractor 0.5 m to the side of the route at the gate. With an opening of 3.4 m the tractor had a lateral room of 0.28 m. The straight before the stop line is now 20 m or more.
- The fence cannot be a thing. The point rule keeps 0.62 m from each scanned point. A Polaris (1.6 m) thus needs an opening of 2.84 m between two posts, more than 1.6 times its width.
- The fence's point is at its arc.
RouteEnv.pose_atgives the route point at the floor of an arc. The verifier interpolates the point of the fence between two route points. Without it, the fence is up to 1 m early. - The load is inside the loader's box. A bale on the spear (450 kg) is 3.55 m to 4.75 m ahead and 0.6 m to each side. The box of the loader in the checker's body (5.4 m ahead, 1.0 m to each side) holds it. Thus the load changes the payload of the row, but not its footprint. A scene starts with the bale on the spear (
items0, present 2), as the scenes of K8 do.