K7 and K8: Take and Carry#
This page gives the skills K7 pick_up and K8 carry of the procedure tier, as built (section 6.2 of Farm Benchmark Suite: Design, work package WP9). The code is Fast/acres_batch/skills/pick_up.py and Fast/acres_batch/skills/carry.py. The framework is on the page Skills: Framework and Contract. The tests are in Tests/Fast/test_skill_pick_up.py and Tests/Fast/test_skill_carry.py. Each number of K7 on this page comes from Results/Benchmarks/skill_k7_validity.json. Each number of K8 comes from Results/Benchmarks/skill_k8_validity.json.
1. K7: The Skill#
The loader approaches a round bale on its axis and engages the spear. The end is the bale on the spear. The vehicle is the Maxxum with the front loader (the owner's decision: round bales, a spear).
| Argument | Unit | Meaning |
|---|---|---|
route |
– | A field route of the route table of the scene |
item |
– | The index of the bale in the item table |
limit_s |
s | The time limit of the call |
back_m |
m | A procedure (P1): after the engage the reference backs this far on the axis of the bale, the way back to the field route. 0 (the bank): the success at the engage. The definition does not read it. |
2. K7: The Route to a New Bale#
The route table of a scene is fixed when the scene is made. In P1 the baler drops a bale during the episode, so no route to the bale can exist. The decision is the smallest change that is correct:
- The call names the bale, not a route to it. The reference reads the pose of the bale from the item table at each decision.
- The route of the call is a field route. It is a line along the windrows, and its corridor holds the field. The stubble after the baler is open ground.
- The reference drives the field route to the place where the axis of the bale crosses it. Then it leaves the route with chunks of its own: a turn onto the axis and a straight creep on it.
- The window of the route stays at the place where the vehicle left the route. The capsules of the field are wide, so the window holds the field.
Thus the framework and the route table do not change. A procedure (WP10) must give each field the field routes that reach its bales. In the bank, a bale is 20 m to 26 m to the side of its field route.
3. K7: Definition and Verifier#
The environment writes these monitors at each decision while the call runs. With \(s\) the load point of the spear (4.677 m ahead of the rear axle), \(c\) the centre of the bale, \(\psi\) the heading and \(a\) the axis of the bale:
held: the bale is on the spear of the row itself.- \(e_{spear}\) and \(e_{axis}\) keep the values of the last decision before the engage. The vehicle does not move between the monitors of a decision and the engage of the next decision. Thus they are the errors of the engage.
bump: before the engage, the box of the vehicle itself (vehicle.TRACTOR_BOX) touched the bale. The row names the bale inengage, so the cull leaves it out. The contact test of the environment then does not see the bale, and this monitor does.
A call succeeds when all these conditions are true:
- The controller reports success, and
heldis true at the decision of the report. - \(e_{spear} \le 0.5\) m and \(e_{axis} \le 15^\circ\): the rule of
items.engage. bumpis false, no contact occurs, and the vehicle keeps its corridor.- The report comes before the time limit.
The start condition is a loader that carries nothing and a bale that lies in the field.
4. K7: Scenes and Splits#
A field of stubble has raked windrows. The baler baled them before the scene starts. The field route is a straight line along the windrows. Its corridor half width is 31 m to 34 m, and its speed is 3 m/s. The loader starts at rest on the route.
- The target bale lies on a windrow 20 m to 26 m to the side of the route and 30 m to 60 m ahead.
- The axis of the bale is across the windrow within 10 degrees. A round baler ejects a bale with its axis across its travel.
- Two to eight other bales lie on the windrows, 6 m to 9 m apart. No other bale is in the region of the turn and the creep.
The scenes are procedural, and the split is by the seed (bank.SPLIT_SEED).
5. K7: Reference#
The reference is a state machine with four states and the terminal states:
lane: the reference drive follows the field route. The route ends 8.5 m before the arc where the axis crosses the route.turn: at rest there, pure pursuit on the axis line. The look-ahead is the distance to the line, from 3.5 m to 8.5 m. Thus the first chunk is an arc of 8.5 m radius onto the line.final: on the line (within 0.3 m and 4 degrees), a creep chunk at 0.4 m/s ends 0.45 m past the engage pose (motion.to_pose). The reference makes it again at each decision while it is longer than 1.75 m.back: at rest infinalwithout the bale, the row backs on the axis line by pure pursuit. It stops 7 m before the engage pose. Thenturnagain, two times at most.
In each state the row names the bale in engage. The engage comes at the first decision with the spear within 0.5 m. The reference reports success when the bale is on the spear.
6. K7: 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 | 63 / 64 | 0.92 to 1.00 | success 63, failure:verdict 1 | 64 of 64 |
The one failure is scene 12 (a target bale with three other bales). The reference reported success with the bale on the spear (spear error 0.37 m, axis error 1.2 degrees). The verdict of the skill (Skill.passes) refused the call. The monitor bump is true. The box of the vehicle touched the bale before the engage.
The call took 95.0 s. The same scene failed with the fitted Maxxum on 12 Nov 2026. The turn onto the bale's axis overshot by 11 degrees under the longer steering lag (batch.md, Defaults of the Settings, Results/Benchmarks/tractor_default.json). Whether the touch of this run comes from that overshoot is not analysed. The solvable bank thus has 63 scenes.
Scene 12 passes since stage 3. Two runs agree: the result file of the stage-3 evaluation (17 Nov 2026, commit 7fdda9e) and the gate's run of 19 Nov 2026. That run wrote Results/Benchmarks/skill_k7_validity.json (commit 97d3caf, an NVIDIA GeForce RTX 5060 Ti). The reference passes 64 of 64 (0.94 to 1.00), the do-nothing controller 0 of 64, and every log repeats. In scene 12 the spear error is 0.49 m, the axis error 2.3 degrees, and the box of the vehicle does not touch the bale (the call takes 94.5 s). The solvable bank has 64 scenes.
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/pick_up.json, defaults_switch.json). These runs are before the fixes of 12 Nov 2026.
| Measure of the Reference | Value |
|---|---|
| Spear error at the engage (median, largest) | 0.45 m, 0.50 m |
| Axis error at the engage (median, largest) | 1.4 degrees, 4.5 degrees |
| Time of a call (median, 90th percentile) | 65.3 s, 72.2 s |
| Distance of a call (median) | 58.2 m |
The spear error is near 0.5 m because the engage comes at the first decision within 0.5 m. The creep moves 0.2 m in a decision.
7. K8: The Skill#
K8 is K1 with a load: the loader drives a route to an arc on it with a bale on its spear. It is a mode of K1 (carry.Carry is a subclass of drive.Drive). The load changes three things:
- A larger body. The bale on the spear is in the contact test (
items.body). The box of the loader is in the body of the checker (vehicle.LOADER_BOX). - More mass. The payload of
items.payloadscales the acceleration and deceleration limits of the vehicle step. - A lower speed limit. A row with a load in K8 or K9 has the speed limit
LOAD_MPS(3.0 m/s, an assumed value) in the capsules of its window (skills/env.py). Thus the checker and the reference drive keep it. K1 with a load keeps the speed of the lanes, as before.
The arguments are those of K1 (route, end, depart_s, limit_s), item, the bale on the spear, and start_m. A procedure (P1) uses start_m: the call starts at this arc when it puts the row on a new route, as K5 (Procedure Layer, section 1). The bank has 0.
8. K8: Definition and Verifier#
The end condition is that of K1: the rear axle within 3 m of the end, slower than 0.3 m/s. With \(v_{peak}\) the largest speed of the call, a call succeeds when all these conditions are true:
- The controller reports success, and the end condition is true at the decision of the report.
- The bale is on the spear of the row at each decision of the call (
held). - \(v_{peak} \le 3.0 + 0.3\) m/s. The 0.3 m/s is the tolerance of the speed loop over the limit.
- No contact occurs, the vehicle keeps its corridor, and the report comes before the time limit.
The start condition is that of K1 and the bale on the spear of the row. The reference is that of K1.
9. K8: Scenes and Results#
The loader with a bale on the spear starts at rest near the start of a lane of 80 m to 220 m. The lane has one or two bends of 15 m to 40 m radius through 25 to 90 degrees. Its corridor half width is 2.8 m to 3.6 m, and its speed is 5 m/s. In half of the scenes a parked machine (6.0 m x 2.5 m) stands beside the lane. Its near side is 2.2 m to 2.8 m from the middle of the lane.
A scene starts with the bale on the spear. The column present of items0 (bank.py) is 2 + the agent for an item on a spear. 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/carry.json, defaults_switch.json). These runs are before the fixes of 12 Nov 2026.
| Measure of the Reference | Value |
|---|---|
| Largest speed of a call (median, largest) | 2.92 m/s, 2.95 m/s |
| Time of a call (median, 90th percentile) | 57.0 s, 76.0 s |
| Scenes with a parked machine that pass | 30 of 30 |
10. Findings#
These findings come from the runs of the development. Their counts are not in a result file, so this section gives none.
- The progress on the route is ahead of the true arc. The reference drive stopped before the stop arc. The turn of K7 then started too far from the axis line. The stop arc of
laneis thus 2 m past the start of the turn. - A turn onto the axis overshoots the heading. The curvature of a chunk changes at the steering rate, so a fast turn unwinds over metres. With a fast turn and a creep from far off the line, some scenes ended with the spear to the side of the bale. The turn is now at 0.6 m/s, the creep starts on the line, and a new try goes back on the line.
- The speed cap of an action does not keep the checker's verdict. A first K8 reference lowered the speed of the chunk of the reference drive. A slower chunk turns sooner, because its curvature changes faster for each metre. The checker refused it (rule corridor), and the vehicle stood at the start. The limit of the load is now in the capsules of the window, so the reference drive plans with it.
- Other bales near the turn. The front of the loader sweeps past the axis in the turn. A bale on a windrow between the route and the target, a little past the axis, made the checker refuse the turn (rule point). The scenes keep the bales from 6 m before the turn to 10 m past the axis.
11. How to Run#
export ACRES_RUNTIME_BUILD=<ACRES>/Vehicle/Runtime/Build
python -m acres_bench.skills.run validity pick_up --n 64 # Results/Benchmarks/skill_k7_validity.json
python -m acres_bench.skills.run validity carry --n 64 # Results/Benchmarks/skill_k8_validity.json
python -m pytest Tests/Fast/test_skill_pick_up.py Tests/Fast/test_skill_carry.py -q -m "unit or integration"