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.

6.0 KB
Raw Blame

RoboCasa · TurnOnMicrowave

A Franka Panda arm on an Omron mobile base (with a torso lift) works in a kitchen: RoboCasa's TurnOnMicrowave kitchen task (robosuite, MuJoCo). Task: Press the start button on the microwave. The scene is one frozen instance: the initial state of one of the benchmark's official demonstrations (kitchen layout, style, fixtures, objects and their poses).

What you hand in

/app/output/trajectory.npz with key actions: the robot's native controller commands, shape (T, 12) with 1 ≤ T ≤ 3000, one row per control step (1/20 s). Write it with s.save_trajectory() so the format is right. Leave the script that produced it at /app/output/gen.py.

Success

The verifier replays your actions from the frozen start in a separate sandbox (twice, in fresh processes; MuJoCo on the CPU is bit-exact) and applies the environment's own success check for TurnOnMicrowave (_check_success) to the state after the last action. A success reached earlier and then lost does not count: end the trajectory while the task is achieved. s.check() returns the check's latest result.

What TurnOnMicrowave's check requires (RoboCasa @ 756598a), all on that final state:

  • The microwave is on: touching its start button with the gripper switches it on; the microwave only registers a button while its door is closed (at most 0.5% open), and opening the door switches it off.
  • The gripper's grip site is more than 15 cm from the start button: move the hand away after pressing.

Tooling (/opt/tools/casa_tool.py, importable as casa_tool)

import numpy as np, casa_tool
s = casa_tool.Session("/app/instance.npz")  # the frozen instance; s.env is the robosuite env, s.model / s.data MuJoCo
s.action_spec        # every channel: name, unit, kind (delta | absolute | grip | mode), lower / upper; frames
st = s.state()       # instruction, qpos, qvel, joint_names, bodies {name: pos, quat_wxyz}, objects, proprio, success
r = s.step(action)   # one control step -> {"success": ..., "control_steps": ..., ...}
s.check()            # the success check's latest result
s.save_trajectory()  # the actions since the last reset -> /app/output/trajectory.npz
s.replay(A)          # reset, then replay A (what the verifier does) -> {"success": ..., "state_sha": ...}
s.reset()            # back to the frozen start, as often as you like (it takes a few seconds)
img = s.render("robot0_agentview_center")   # RGB (240, 320, 3); views in s.camera_views; s.render_grid()
  • Actions: 12 channels, in order: arm_dx, arm_dy, arm_dz, arm_drx, arm_dry, arm_drz -- the end effector's motion per control step in the robot's base frame, scaled by the controller (1.0 = 5 cm and 0.5 rad per step); grip (+1 closes, -1 opens); base_x, base_y, base_yaw -- the mobile base's target velocities in its own frame (1.0 = 1 m/s for base_x / base_y and 1.5 rad/s for base_yaw; force-limited velocity servos, so the base may lag the target); torso -- the torso lift, a joint-position controller with delta input (each step sets the lift's height target to its current height + 0.05 m × the value, so 1.0 = 5 cm per step; lift range 0–0.34 m); hybrid_mode (> 0: base mode, the arm's goal moves with the base; <= 0: arm mode, the default -1). Every channel is clipped to [-1, 1].
  • The success check runs twice after every control step and once at reset, in your session exactly as in the verifier. Some checks count consecutive successful steps, so calling s.env._check_success() yourself changes the state of the run you are recording; use s.check().
  • World frame: metres, z up; s.state()["bodies"] gives every body's position and orientation (quaternions w x y z).
  • Everything in s.env, s.model and s.data is readable (privileged mode).

Rules

  • Write your own controller. Do not use the benchmark's demonstrations, trained policies or any published solution.
  • Only the actions count: editing s.data or the environment while debugging changes nothing in the replay.
  • Save a working trajectory early, then improve it; do not stop early.

External material

You may install packages you need (pip, apt), and you may read anything installed in your container, the simulator's and this benchmark's own source code included. Please solve the task yourself: do not search the web for, or download, a ready-made solution to it, such as published or reference solutions, recorded demonstrations, or policies trained for it. This is an honour rule; trials are reviewed. The network reaches your model's API and the package registries (PyPI, Debian / Ubuntu archives) only.

Resources

Your container: 4 CPUs, 15 GiB of memory, 1024 processes and threads and 10 GiB of disk (new files under /app, /tmp and /root). Your container has no GPU. CPU only slows you down; a process that goes over any other cap can be killed. Usage and caps: /run/rcb-limits/usage.json.

Time limit

You have 3600 seconds to complete this task. Do not cheat by using online solutions or hints specific to this task.

This is wall-clock time from the start of your session; the time a simulator takes to start counts. When it is up you are stopped without warning and only what is in /app/output/ at that moment is graded, so save a deliverable as soon as you have one and overwrite it whenever you have a better one. Your session started when you received this task. /run/rcb-limits/usage.json, rewritten every few seconds, gives the time left on this limit (time_left_s) and its end (deadline_utc), counted from a little before your session started, so it never gives you more time than you have: read it (or run date) before you decide that time is short, never guess. Waiting counts too: a tool call that sends input to a process that keeps running (an interactive interpreter, a simulator loop, a server) can wait for the whole wait or yield time you give it even when the answer is printed at once, so give such calls a short wait and poll again if the output is not complete, or run one-shot scripts that exit when they are done. Installing packages is not cheating (## External material above).