agent_control_e2e: pick up a drop from within a block (it can land under the trunk)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-13 22:28:14 +02:00
parent c0f468a871
commit 502c8b9311
+1 -1
View File
@@ -194,7 +194,7 @@ def scenario(d, out):
if broke['picked_up'].get(log_id, 0) < 1:
items = d('entities', radius=8, type='item')['entities']
drop = next(e for e in items if e['item']['item'] == log_id)
d('goto', x=drop['pos'][0], y=drop['pos'][1], z=drop['pos'][2], near=0.4, timeout=20)
d('goto', x=drop['pos'][0], y=drop['pos'][1], z=drop['pos'][2], near=1.0, timeout=20) # pickup reaches a block; the drop may lie under the trunk
d('wait', ticks=10)
inventory = d('inventory')
assert inventory['counts'].get(log_id, 0) >= 1, inventory