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.

7.2 KB
Raw Blame

RoboCasa365 · OrganizeCoffeeCondiments — STANDARD MODE (robot as a service)

A Franka Panda arm on an Omron mobile base (with a torso lift) works in a kitchen: RoboCasa365's OrganizeCoffeeCondiments kitchen task (robosuite, MuJoCo). Task: Pick the syrup bottle and honey bottle from the cabinet and place them next to the mug. The scene is one frozen instance: the initial state of one of the benchmark's official demonstrations.

You control the robot as if it were real hardware: the simulator runs in a service you cannot open. You get one client and one episode.

Rules (real-robot rules)

  • No reset. What you knock over stays knocked over.
  • No privileged state. You see what the robot's cameras see (RGB, optional depth, with each camera's calibration) and the robot's own state. No object poses, no scene layout, no success signal.
  • Your only budget is the time limit (## Time limit; meta["time_left_s"] is the service's count of it). There is nothing to hand in: the service records the episode as the trajectory and grades it. Leave your script at /app/output/gen.py for the record.
  • Do not use the benchmark's demonstrations, trained policies or any published solution; write your own controller.
  • Images come back as arrays in a Python object; what you look at and where you store it is up to your code.

Scoring

The episode runs until your time is up. The service then applies the environment's own success check for OrganizeCoffeeCondiments to the state of the live episode after the last executed control step: the episode as the service ran it, nothing is replayed. A success reached earlier and then lost does not count: end in the state you want graded and stop submitting.

The check for OrganizeCoffeeCondiments requires that the syrup bottle and the honey bottle both touch the counter under the coffee machine with their centres less than 0.3 m from the mug's (3-D distance), and the gripper ends more than 0.15 m from both.

How RoboCasa365's checks compute these terms (robocasa/utils/object_utils.py):

  • the gripper ends more than d m from X: the distance from the robot's end-effector grip site to X's origin exceeds d. Opening the fingers is not enough: release, then move the hand away.
  • X is on / in Y for an object Y (plate, tray, board, pan, pot, colander, tupperware, glass): X touches Y and their centres are within 0.7 × Y's horizontal radius of each other horizontally, unless a distance is given.
  • X touches a counter, the dining counter or the stove: contact between X and that fixture.
  • X is inside a fixture (a cabinet, the sink or one of its basins, the microwave): all eight corners of X's bounding box are within the fixture's interior region (5 cm tolerance).

Client (/opt/tools/rcb_client.py, protocol eai-standard/2.1)

from rcb_client import Robot
r = Robot()                                   # connects (waits while the service starts: about a minute)
spec = r.spec()                               # control_dt, action layout + limits + kinds, cameras, proprio layout, budget
cams = list(spec["cameras"])                  # robot0_agentview_center, robot0_agentview_left, robot0_agentview_right, robot0_eye_in_hand
obs = r.get_obs(cameras=cams, include_depth=True)   # obs.last[cam] -> uint8 (240, 320, 3); obs.depth[cam] -> metres
obs.meta["proprio"]                           # {"layout": [...], "now": [...]}: joints, end effector, last command
obs.meta["cameras"]                           # per camera: intrinsic_cv, cam2world_gl (OpenGL: looks along -z), current
obs = r.get_obs(cameras=cams[:1], seconds=2.0, video="mp4")    # hold still and watch for 2 s (max 30)
res = r.submit("joint_position", A, cameras=cams[:1], video="mp4")   # A: (T, 13) rows, one per control step
res.meta["done"], res.meta["reason"], res.meta["control_steps"]
res.video[cam]; res.frames[cam]; res.last[cam]; res.proprio; res.save("/app/runs/003")
  • Action joint_position: the robot's native controller command, applied once per control step (control_dt = 0.05 s; float64). 13 channels, in order: arm_joint1 .. arm_joint7 -- absolute joint position targets (rad, within the joint limits in spec["action_types"]["joint_position"] (lower / upper, from r.spec())); grip (+1 closes, -1 opens); base_x, base_y, base_yaw -- the mobile base's velocities in its own frame (normalised, [-1, 1]); torso -- the torso lift's velocity; hybrid_mode (> 0: base mode; <= 0: arm mode, the default -1). Values are clipped to the limits. Rows are dt apart (default and minimum: control_dt; a chunk covers at most 10 s).
  • get_obs(seconds=s) holds the robot still (delta channels zero, targets, grip and mode kept) while physics runs for s seconds; those control steps are part of the episode.
  • The cameras are mounted on the robot and move with it: use the calibration that comes with each response.
  • World frame: metres, z up.

One call returns at most 3000 images (max_frames_per_call, PROTOCOL §3 "Images per call").

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, 6 GiB of memory, 1024 processes and threads and 10 GiB of disk (new files under /app, /tmp and /root). Your container has no GPU. The simulator runs in its own container and does not count against these. 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 you wait for the simulator service counts. When it is up you are stopped without warning and the episode is graded as it stands at that moment. The service's time_left_s counts the same limit from your first request to the service, so it never runs out before your time does: your real time left is time_left_s minus the time you spent before that request. Plan by it. 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).