Skip to content

K9: Place#

This page gives the skill K9 place of the procedure tier, as built (section 6.2 of Farm Benchmark Suite: Design, work package WP9). The code is Fast/acres_batch/skills/place.py. The framework is on the page Skills: Framework and Contract. The tests are in Tests/Fast/test_skill_place.py. Each number on this page comes from Results/Benchmarks/skill_k9_validity.json or from Results/Benchmarks/skill_k9_gap.json.

1. The Skill#

The loader puts the round bale on its spear at a slot pose. The slot is in the stack of a shed or in a row on the ground. It must release the bale inside the slot tolerance (0.3 m and 10 degrees), and the stack rule must hold. In the shed, the door opens and closes, and a worker works it (the owner's decision).

Argument Unit Meaning
route – The route of the route table to the line of the slot
arc m The arc of the place pose on the route: the rear axle with the spear at the centre of the slot
slot – The index of the slot
item – The index of the bale on the spear
door – The resource of the door of the shed (-1: none)
limit_s s The time limit of the call
back_m m A procedure (P1): after the withdrawal the reference backs on in a straight line, out of the shed, with the claim of the door. It stops when the rear axle is this far behind the place pose. 0 (the bank): the success at the end of the withdrawal. The definition does not read it.

2. Definition and Verifier#

The environment writes these monitors at each decision while the call runs. With \(c\) the centre of the bale, \(a\) its axis, \(p_s\) the centre of the slot and \(a_s\) the axis of the slot:

\[ e_{pos} = \lVert c - p_s \rVert, \qquad e_{yaw} = \text{the angle between } a \text{ and } a_s \text{ (either end)} \]
  • stored: the bale is in the slot, and the slot is full with it.
  • \(e_{pos}\) and \(e_{yaw}\) keep the values of the last decision before the release. The vehicle does not move between the monitors of a decision and the release of the next decision. Thus they are the errors of the release.
  • rule: at the decision of the store, each slot that the slot needs is full. A slot above needs the slot below. A slot on the floor needs the top slot of the place behind it (items.stack_slots).
  • clear: after the store, no box of the frame of the vehicle touches the stored bale. The spear is out of the bale.
  • bump: the box of the vehicle itself touched the bale at the floor of the place. This bale is the bale below a slot of level 1, or the stored bale. The row names it in engage, so the cull and the contact test leave it out, and this monitor does not.

A call succeeds when all these conditions are true:

  • The controller reports success. stored, rule and clear are true, and the vehicle is at rest (slower than 0.1 m/s).
  • \(e_{pos} \le 0.3\) m and \(e_{yaw} \le 10^\circ\): the tolerance of section 6.2.
  • bump is false, no contact occurs, and the vehicle keeps its corridor.
  • The report comes before the time limit.

Section 6.2 does not tell how a spear releases a bale. The release of a spear is the withdrawal, so the end condition includes the spear out of the bale. The start condition has three parts. The bale is on the spear of the row. The slot is free, and its needs are full. The place pose is 2 m or more ahead.

3. Scenes and Splits#

The vehicle is the Maxxum with the front loader. It starts with a bale on its spear. A scene has one of two targets:

Target Scene
Shed The loader is at the dock pose of K10 before the closed door. The leaf is 2.5 m to 3.2 m ahead of the front of the loader. The door is 4.6 m to 5.0 m wide in the front wall. The worker's post is outside, beside the door. The stack is 2 or 3 places deep and 2 or 3 places across, with 2 levels. Two routes go through the door: that of the column of the target (the route of the call) and that of a column beside it. Each shifts to the line of its column in an S of 12 m radius and runs on that line. The corridor of each route is its own chain of capsules (lanes.pack with own_chain). The walls are things.
Row A row of 3 to 6 places on the ground in a yard, with one level and no rule. The route has a straight of 10 m to 30 m. A bend of 12 m to 20 m radius through 30 to 90 degrees follows. A straight on the line of the target follows.

The stack of a shed is in part full, in an order of the stack rule. Some places of a row are full. The target is a free slot whose needs are full. A scene starts with these bales stored: the column present of items0 (bank.py) is STORED0 + the slot. The gap between two bales is 2.9 m (section 6).

The scenes are procedural, and the split is by the seed (bank.SPLIT_SEED). The test bank of the check has 42 shed scenes and 22 row scenes. 46 targets are on level 0 and 18 on level 1.

4. Reference#

The reference is a state machine with five states and the terminal states:

  1. door: with a door, the row claims it. The door opens in 10 s when the worker is at the post. The row stands until the door is open, and it keeps the claim until the end.
  2. approach: the reference drive follows the route. The route ends at the place pose.
  3. final: from 8 m before the place pose, a creep chunk ends 0.45 m past it (motion.to_pose). Its speed is 0.8 m/s. From 2.5 m before the pose it is 0.4 m/s with the follower of the vehicle (the default). It is 0.25 m/s with the batched follower (place.CREEP_BY_LAW). The follower of the vehicle commands the speed of the chunk one sample (0.5 m) ahead. In the last sample its command falls below the stop speed of the vehicle model (0.1 m/s) sooner at a lower speed. At 0.25 m/s the loader stopped 0.3 m to 0.4 m short in 17 of 64 validation scenes. At 0.4 m/s all 64 pass. A creep that ends farther past the pose does not help: the shield cuts it at the stored bale. The reference makes it again at each decision while it is longer than 1.75 m.
  4. The release comes with the stand action. It comes at the first decision with the bale 0.08 m to 0.22 m short of the slot. The bale must also be within 0.12 m across and 6 degrees. At rest the release needs the bale within 0.28 m and at most 0.10 m past the slot.
  5. withdraw: straight chunks backwards of 2.5 m at 0.5 m/s, while the spear is not clear. Success at rest when it is clear.
  6. back: at rest in final without a release, straight chunks backwards to 4 m before the place pose. Then final again, two times at most.

The release comes short of the slot because the vehicle stops after the release. With the spear at the centre of the slot, the box of the vehicle is 0.15 m before the stored bale. A release short of the slot keeps the stop clear of the bale.

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 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/place.json, defaults_switch.json). These runs are before the fixes of 12 Nov 2026.

The reference passes 42 of 42 shed scenes and 22 of 22 row scenes.

Measure of the Reference Value
Position error at the release (median, largest) 0.18 m, 0.24 m
Heading error at the release (median, largest) 0.8 degrees, 3.1 degrees
Time to the store (median, 90th percentile) 44.5 s, 65.2 s
Time of a call (median, 90th percentile) 52.0 s, 73.6 s
Idle time of a call (median) 13.0 s

The idle time includes the 10 s of the door.

6. The Gap of a Stack#

The design's stack of P1 has 0.1 m between two bales. The checker refuses a place beside or in front of a bale at that gap. The point margin is 0.62 m from each box of the body. The box of the loader is 1.9 m wide and reaches 1.25 m past the spear. The end clearance of the checker adds 0.88 m.

A one-time run of the reference on the 64 shed scenes of the test seeds at each gap. The table ran again on 12 Nov 2026 with the defaults of 11 Nov 2026 (the follower of the vehicle) and the final creep of 0.4 m/s (commit d121b4b, the tree had changes of the P4 files only, which the skills do not use). The counts are those of the first run (commit 9d88904, the batched follower and 0.25 m/s): the gap, not the creep, decides.

Gap Pass Scenes in Which the Row Stood on Refusals
0.1 m 5 / 64 59
0.5 m 5 / 64 59
1.0 m 5 / 64 59
1.5 m 28 / 64 36
2.0 m 33 / 64 31
2.5 m 33 / 64 31
2.9 m 64 / 64 0

The owner's decision (18 Nov 2026): the stack has a working aisle of 2.9 m. The checker's margin near stored bales does not change. items.STACK_GAP_M is 2.9 m. The bank of K9 (place.SLOT_GAP_M) and the stack of P1 (scenarios_hay.STACK_GAP_M) use it. The item checks (Fast/Tools/items_check.py) keep a dense stack of 0.1 m as a stress of the rules and the cull.

A run on 19 Nov 2026 (branch gaps-failures, oats5, the reference of K9 on the 64 shed scenes of the test seeds) gives the same counts with the code of now. The reference passes 5 of 64 at 0.1 m (59 rows stood on refusals) and 64 of 64 at 2.9 m.

7. Findings#

These findings come from the runs of the development, except the gap of section 6.

  • Two routes on one way put two chains on it. The first shed scenes had one route for each column of the stack. Each route went through the door. At a point of the shared way, the checker took the four capsules nearest to the rear axle (check.NEAR). These were the current capsules of the two chains and the capsules before them. The capsule ahead was not in them, and the checker refused each forward chunk (rule corridor). The fix (P1 first, then this bank on 19 Nov 2026): the corridor of each route is its own chain (lanes.pack with own_chain). The relevance list of a route then has its own capsules and those of the lanes that no route takes. It does not have the chains of the other routes. A shed scene of the bank has two routes since 19 Nov 2026. The reference passes 64 of 64 with the own chains and 41 of 64 without them (a one-time run on zuzu). Without them 23 shed scenes end on the time limit, with the row standing on refusals.
  • The release in motion. The bale snaps to the slot at the release, and the vehicle stops after it. A release at the slot or past it put the box of the vehicle into the stored bale (bump). The release now comes short of the slot.
  • The checker refuses the withdrawal without the exclusion. After the release the stored bale is inside the box of the loader. The row names it in engage while it backs, so that the cull leaves it out.
  • A start with a load or a stack. Before this work, a scene of the environment did not start with a bale on a spear or in a slot. skills/env.py now reads two codes of the column present of items0: 2 + the agent, and STORED0 + the slot. The scenes without these codes are as before.

8. What the Hay Procedure Needs#

  • A stack with a gap of 0.1 m does not pass the checker. The stack has the working aisle of 2.9 m (section 6, the owner's decision).
  • The worker walks into the shed only when no row holds the door. The reference of K9 keeps the claim of the door until its end, and the next call must free it.
  • The exclusion of an item by engage also hides it from the contact test. The monitor bump of K7 and K9 tests the box of the vehicle against that item. A procedure that calls other skills with an item named must test it the same way.
  • The speed limit of a load (3.0 m/s) holds in K8 and K9 only (the attribute load_mps of a skill). K1 with a load keeps the speed of the lanes. A haul must thus call K8, not K1.

9. How to Run#

export ACRES_RUNTIME_BUILD=<ACRES>/Vehicle/Runtime/Build
python -m acres_bench.skills.run validity place --n 64       # Results/Benchmarks/skill_k9_validity.json
python -m pytest Tests/Fast/test_skill_place.py -q -m "unit or integration"