Skip to content

The first exam for code agents in the physical world: frozen robot tasks from many benchmark suites, each answered with a program and verified in a separate sandbox. Runs on Harbor.

5.3 KB
Raw Blame

pandadyn-s08-load-switch-recover-i00-realtime

Benchmark Panda Dynamic Scenes
Mode realtime (eai-standard/2.3)
Twin pandadyn-s08-load-switch-recover-i00-privileged
Simulator / robot maniskill / franka-panda
Family / instance s08_load_switch_recover / seed 0
Oracle full
Agent time budget 3600 s; tokens: protocol default (docs/protocol/running.md "Official runs")
Real time slowdown S = 6 (the world runs at 1/S of real speed: one control step every S x control_dt s of wall time; RCB_SLOWDOWN's default); reset budget 3 (RCB_RESET_BUDGET's default) (PROTOCOL §3)
Base image ghcr.io/mll-lab-nu/efe:pandadyn-0.2.0

Task

Realtime twin of pandadyn-s08-load-switch-recover-i00-privileged (same frozen instance and success check as it and as pandadyn-s08-load-switch-recover-i00-standard): the agent gets only the realtime client (eai-standard/2.3, docs/protocol/standard_mode.md Part 3); the simulator runs in the sim sidecar on a clock that does not stop, at slowdown S = 6 (one 10 ms control step every 60 ms of wall-clock time), with 3 resets (only the last episode is graded). A small cube (the part) rides a powered roller conveyor, and an unpowered cart is already coasting along a straight channel towards a passive hinged switch that splits the track into two diagonal branches. Grasp the part with both fingers while it is still moving and lift it, drop it into the moving cart without stopping the cart, which must keep coasting until the switch is set, then push the switch with a finger so that it will steer the cart into the branch selected for this instance (one of the two sides, drawn per instance and given under Goal geometry) before the cart reaches it. The cart must then be deflected by the switch into that branch. Finally, grasp the part again, lift it out of the cart and hold it up before the cart runs too far down the branch.

Difficulty

That of pandadyn-s08-load-switch-recover-i00-standard, but the scene does not wait between calls: once an episode's clock starts, the moving objects and the robot's servos run whatever the agent does, so the agent has to plan or stream the targets from a program of its own (the task's horizon is 25 s of robot time, about 150 s of wall-clock time at S = 6), and learn the scene from 4 real attempts.

Reference solution

solution/oracle_plan.py plans the privileged oracle's rows (solution/oracle_qpos.npy, one row per control step, hold) into the episode from control step 0 through the realtime client, one chunk of at most 10 s at a time, each at its own step (at), so every row runs at the control step it was recorded for; it uses no privileged information at run time. Checked at S = 6: live success, fresh-process replay success, the same final state.

Verification

The sim service (environment/sim/rcb_realtime.py + rcb_service.py, the shared eai-standard/2.3 layer, with environment/sim/server.py, this benchmark's adapter on rcb_pandadyn.Session) judges the episode live and records every control step it ran (trajectory_live.f64); after the agent's time the collect hook stops the agent's programs and signals the service, which writes the live episode's verdict into final.json (graded_by = live, replays = 0; nothing is replayed to grade it) and then renders the video from the graded episode's rows; tests/grade.py (separate sandbox, no network) passes iff the last episode ended in the task's success (every phase in order, no failure: the episode's end, so there is no settle window to add). The frozen start is checked when the first episode begins (the state hash against the instance's initial_sha; a mismatch is instance_mismatch, an infrastructure failure). The clock's record (stalls, max_lag_s, late_steps, ...) is copied into reward.json and decides nothing. nop: the episode never starts (its clock starts at the first submit), reward 0.

Resources

Caps per container (PROTOCOL §6).

Container CPUs Memory Processes GPU memory Disk
main (the agent's) 4 10 GiB 1024 no GPU 10 GiB
sim 4 12 GiB 1024 3 GiB —
verifier (as main) 4 10 GiB no cap no GPU 10 GiB
  • GPU: any NVIDIA GPU, held by sim.
  • Recommended GPU: any 8 GB+ NVIDIA GPU with Vulkan (RTX 4090 / L4).

Details

Episode it ends at the first control step where the task has succeeded or failed (the task's horizon, 25 s of robot time, is a failure), when the agent's time is up, or on a simulator error; 3 resets (POST /reset: the scene rebuilt from the frozen instance, paused)
Action space submit chunks of joint_position (8: per arm 7 joint targets + the aperture, one row per 10 ms control step or dt apart) planned from step at; observe now or a watch window; binary RCB1 responses
Cameras overview and closeup (static), 640×480 RGB, z-depth on request, rendered by SAPIEN on the sidecar's GPU
Images the sim sidecar runs efe:pandadyn (images/pandadyn/); the agent container and the verifier run the shared client image with its pip pins (embodied_first_exam/standard/client.env)
Crash recovery the shared realtime layer's: a checkpoint every second of robot time, restart: on-failure:6, the service resumes the same episode, paused
Benchmark notes tasks/pandadyn/README.md