beat_block_hammer (atomic)
Scene
Tabletop, dual-arm robot (default aloha-agilex). Two objects:
- 020_hammer — fixed pose near the back of the table
- coloured_block — random pose within
xlim=[-0.25, 0.25],ylim=[-0.05, 0.15]
Goal
Drop the hammer head onto the block's top. RoboTwin's check_success is the authoritative predicate.
Arm-selection rule
If block.x < 0 → left arm. Else → right arm. Other arm idle.
Lifecycle (4 sub-skills)
| sub-skill | what it does |
|---|---|
| zeroshot/ | VLM drives base tools (look / find_pixel / move_to_pixel / set_gripper). Successful runs land in DataStore as cold-start data. |
| train/ | π₀.5 finetune on accumulated successes. Streaming. |
| eval/ | Held-out seed eval, maintains active_executor state — switches from zeroshot to policy:<ckpt> once threshold crossed. |
| reset_success/ | Post-success scene reset — for sim, calls env.reset(new_seed). For real, uses base tools to nudge objects back. |
| reset_failure/ | Failure-case recovery — VLM-driven via base tools; high-frequency cases land in <task>_reset_failure_<mode>/ for later policy distillation. |
Why this task is the worked example
- Built-in success predicate (
check_success) lets us automate eval honestly. - Two-arm scene exercises arm selection logic (the simplest non-trivial planning).
- Cheap to re-run (~0.6 s per episode in sim).