# Primitive Annotation Protocol (v4) Task pilot: `blocks_ranking_rgb` — 5 trainable manipulation classes. ## Classes | Label | ID | Definition | |-------|-----|------------| | **reach** | 0 | Open-gripper movement **toward** the next grasp target (approach before closing). | | **grasp** | 1 | Closing the gripper and establishing a stable grasp on the block. | | **transition** | 2 | Moving **while holding** the object (carry / transport to the place pose). | | **release** | 3 | Opening the gripper at the target to let go of the block. | | **retract** | 4 | After `release`, lifting / moving away with an open gripper before the next `reach`. Last cycle: `retract` runs to episode end. | Unlabeled gaps in segment coverage use ID `-1` internally but are **not** a trainable class. ## Typical sequence (3 pick-place cycles) ```text reach → grasp → transition → release → retract reach → grasp → transition → release → retract reach → grasp → transition → release → retract (retract to end of episode) ``` ## Annotation rules 1. Labels are stored on **video frame** indices; training maps frames → concept timesteps. 2. `full_label` and `womae_label` share the **same** annotation per episode. 3. Do not use `transition` as a catch-all for all motion — **only while gripping**. 4. Do **not** use `reach` for post-release lift-away; that is `retract`. 5. Trailing frames after the last `release` are `retract`, not ignored. ## Dual-arm (`blocks_ranking_rgb`) Three blocks per episode; left/right arms split blocks randomly (e.g. L2+R1). Proposal reads `endpose/left_gripper` and `endpose/right_gripper` separately and picks three grasp cycles across arms — never OR-combining grippers. ## Proposal heuristic (`propose-primitive-labels`) Per cycle: `reach → grasp → transition → release → retract`. - `retract` ends `REACH_PREGRASP_FRAMES` (30) before the next close, or at episode end for the last cycle. - Open gripper after release → `retract` until next approach window → `reach` - Close event → short `grasp` window → `transition` while closed - Open event → short `release` window → `retract` Proposal is an **assist only**; audit before formal results.