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.
Table tennis: program play (match)
You play table tennis against a scripted opponent (you are seat A). Robot table tennis in a continuous world slowed by a factor S (MuJoCo Franka Panda + paddle on an x-y rail base behind the end line, both held to the real robot's limits: the Panda's joint velocity, acceleration, jerk, torque and torque rate, the rail's speed, acceleration and jerk; DeepMind ball and table model), seen only through two cameras of four frames each; one game to 5 points (lead by 2 from 4:4, at 6:6 the next point wins); the players' robots serve by the ITTF service laws (a toss device on the robot projects the ball at least 16 cm up from a point you choose behind your end line, you strike it as it falls; 2 serves each, from 4:4 one each); format match: you against a scripted opponent (level 1-4; you serve first), format duel: two players.
This is Embodied Olympics task tabletennis-match-wallclock-program-standard (revision wallclock-15+duel-wallclock-12+low-inloop-1+core-0.2), one frozen instance: the scripted opponent at level 4, the world slowed S = 10 times; the seed is fixed and never shown. The simulator service is at http://localhost:8000.
Time
The world runs in real time at 1/S of real speed (S = timing.slowdown in game spec); your thinking costs game time. At the end of every unit the world freezes for the reviews.
Whenever the world freezes for a review (after every unit: a point, a shot, a heat; see game spec), send game ready "WHY" "PLAN" (a short review) before the next unit starts.
Each review has a time limit: send game ready within 300 s of real time after the world freezes (timing.review_timeout_s in game spec), or your side loses the match (ready_timeout, a valid result, success 0, even when you are ahead). The world does not go on by itself after the limit: watch for the freeze (your program's log, game status) and review at once.
Send game start within 1800 s of real time after the match service starts (start.window_s in game spec), or you lose the match (no_show, a valid result, success 0). The match does not run before that: read game spec and prepare your program first.
The match is graded when your session ends: stay until it is over. If your session ends before the match is over, you lose the match (a valid result, success 0), also if you never sent game start.
Write a program
You may write a program that observes, measures in the images, computes your next action and sends it, without a
new model response for each action. You stay in the loop: watch its log, and stop, fix and restart it whenever
needed. Only you send game start and game ready.
- Use only the camera images, the service's replies and this document; no simulator internals or hidden state.
- One action at a time: an action sent before the previous one has returned is refused (HTTP 429).
- Your container: Python 3.12 with numpy, SciPy and Pillow; also opencv-python-headless==5.0.0.93; the network reaches only your model's API and the package registries. Keep your scripts, logs
and notes in
/app/output/.
Your actions are the sport's skill API (hit): the platform executes each one; game spec (skill_contract) says exactly what it delivers.
Interface
Use the game command, or the same calls as HTTP with JSON at http://localhost:8000/<SEAT>/ (your seat is $SEAT):
game command |
HTTP | |
|---|---|---|
game spec |
GET /spec |
the actions (types, fields, ranges), the cameras with their intrinsics, the rule constants |
game status |
GET /status |
the current state, no image |
game start |
POST /start {} |
you are ready; the match begins when every seat has started |
game wait DT |
POST /wait {"dt": DT} |
let DT game seconds pass (0 < DT <= 1) |
game observe |
POST /observe {} |
the state and the camera images (one PNG of tiles: observation.tiles) |
game act JSON |
POST /act JSON |
one action |
game none |
POST /act {"type":"none", ...} |
one action (game spec lists the fields and ranges) |
game ready "WHY" "PLAN" |
POST /ready {"why":"...","plan":"..."} |
your review after each of your actions |
Errors: 400 = an invalid action (nothing happens), 409 = not now (not your turn, or a review is due), 429 = one action in flight, or more than 20 requests per second or 4 open requests from your seat (empty body: retry more slowly).
Rules
- robot table tennis in a continuous world slowed by a factor S (MuJoCo Franka Panda + paddle on an x-y rail base behind the end line, both held to the real robot's limits: the Panda's joint velocity, acceleration, jerk, torque and torque rate, the rail's speed, acceleration and jerk; DeepMind ball and table model), seen only through two cameras of four frames each; one game to 5 points (lead by 2 from 4:4, at 6:6 the next point wins); the players' robots serve by the ITTF service laws (a toss device on the robot projects the ball at least 16 cm up from a point you choose behind your end line, you strike it as it falls; 2 serves each, from 4:4 one each); format match: you against a scripted opponent (level 1-4; you serve first), format duel: two players.
game_format: first to 5 points; from 4:4 a lead of 2 is needed; at 6:6 the next point wins (7 at most)rules: after exactly one bounce on your half, hit the ball once so that it lands on your opponent's half, directly or after touching the net (the upper table edges count, the vertical sides do not); the same holds for your opponent's returns. You lose the point for a volley, a double hit, two bounces, a miss, a ball that lands on your own half or out, the ball touching your arm or handle while it is over or travelling towards your half, or your robot or paddle touching the net assembly (touching the table is allowed). A shot that passes a player's half without touching it is out, even if it then hits that player's robot. The receiver's 13th good return in a rally wins it the point (expedite rule). At 40 points played (lets included) the player ahead wins, at a level score the player who won the last pointserve: the players serve (ITTF 2.6; state.you_serve, state.you_receive_serve, state.serve): you serve the first 2 points, your opponent the next 2, and so on; from 4:4 the service changes after every point (2.13.3; lets do not count). state.serve: phase waiting (the receiver is getting ready) -> open (0.8 s after the previous point; opens_in_s) -> tossed (tossed_at_step) -> done; court any (singles has no service court); deadline_in_s; detail, server, and for the server delay_faults and its own toss. The server must toss within 5 s of the serve opening (deadline_in_s), else it is a failed service (the receiver's point) and the third such fault loses the match. Toss: {type: toss, pos: [x, y, z], height} (both action levels; it takes effect like an act): the ball rests at pos for 0.1 s, then it is projected straight up with no spin to rise height metres above pos (0.16 <= height <= 1.0, Law 2.6.2: at least 16 cm); pos behind your end line and above the table (y <= -1.39, 0.02 <= z <= 0.9) and within 0.9 m of your base horizontally; until then the ball waits out of sight in your robot's column. Then strike it with your paddle (an act, which you may send before or after the toss, its contact time counted from when it takes effect as usual; state.serve.toss.projected_at_step tells when the ball leaves the device) as it falls, while it is still behind your end line and above the table; it must bounce on your court and then directly on your opponent's court, at least 0.2 m from the net (deviation D13: the ball's centre at that bounce; closer is a failed service, serve_fault:short, even if it touched the net). A service that touches the net and is otherwise good is a let (replayed), at most 2 in a row: your third service let since the last point scored is a failed service (your opponent's point, serve_fault:repeated_let; state.serve.lets_in_row counts them). Service faults are recorded as serve_fault::opponent: format match: you serve first; the scripted opponent serves its turns (2.13.3): a toss from its end, then a serve from the official serve library (always legal: the legal services a Franka on a rail made under the real robot's limits, struck as the toss falls back through the strike point; level 1 draws from the easiest 25 % of the library - ranked by how low the ball bounces up on your court and how much spin it has: the easiest bounce highest with the least spin -, level 2 40 %, level 3 60 %, level 4 all). It returns every ball it can reach; it judges how wide and how fast your ball is and, for your service, also how short (a service it meets close to the net is harder; level 1 meets nothing nearer than 0.62 m from the net, level 4 0.45 m), and it moves faster for a service (it is ready for it: 0.65-1.05 m/s by level); higher levels react faster, reach further and play faster, wider balls with more spin (match.opponent_levelin game spec). It obeys the same real limits as your robot: its paddle moves along its end line within the rail's 2 m/s, 8 m/s^2 and 200 m/s^3, and its shots stay within what the limited arm produces (at most 5.5 m/s off the paddle, 34 rad/s of spin, a blade speed of 2 m/s by the contact law)duel: format duel: both players serve by the same rules;match.first_serverserves the first 2 points; before every point both robots are put back at rest in the ready pose with their bases at home; both players get this document and see the game in their own frameworld: metres; your frame: x to your right, y towards the opponent, z up; table top z = 0, |x| <= 0.7625, |y| <= 1.37; net at y = 0, top z = 0.1525; your half y < 0; your robot faces +y on an x-y rail base behind your end line: base position base_xy (link0 at table-top height), travel |x| <= 1.0, -2.40 <= y <= -1.50, home (0, -1.75); up to 2 m/s, 8 m/s^2 and 200 m/s^3 per axis; the arm is a Franka Panda held to its real joint limits (velocity 2.175 / 2.61 rad/s, acceleration 15 / 7.5 / 10 / 12.5 / 15 / 20 / 20 rad/s^2, jerk 7500 / 3750 / 5000 / 6250 / 7500 / 10000 / 10000 rad/s^3, torque 87 / 12 N m, torque rate 1000 N m/s); its servo runs the arm at 0.9 of the velocity limits, and an arm joint faster than 1.05 x its limit triggers the robot's velocity reflex: it stops at that pose for 1 s, then resumes from rest (the stroke is lost; game spec limits.controller); its collision reflex does the same when the arm or paddle presses on the table with more than 20 N (touching the table is legal, D4, but the robot protects itself)ball: radius 0.02 m, orange; gravity 9.81 m/s^2; air drag about 0.13 |v| v; spin bends the flight by a few cm; a bounce keeps about 90 % of the vertical and 87 % of the horizontal speed (a ball dropped from 30 cm bounces back to about 23 cm, ITTF 2.1.3); a ball takes about 0.6-0.9 s from the opponent to youreach: the blade can meet a ball whose centre is within about 0.85 m of the shoulder (base_xy, z = 0.33) and above z = 0.12; the base moves the shoulder over the whole table width but never over the table (it stops 0.13 m behind the end line)blade: 15 x 15 cm; at contact its centre is 2.75 cm from the ball's centre along the face normal; with n the unit face normal the ball leaves with about v_out = v_paddle - 0.80((v_in - v_paddle).n)n + (v_in - v_paddle) - ((v_in - v_paddle).n)nobservation: observe: one PNG of 2 rows (camera behind your robot, camera at the side) x 4 columns (frames 40 ms apart, newest right) of 480 x 360 tiles, with each frame's control step (observation.view_steps); no ball coordinates; yellow marks every 0.25 m along the table edges; cameras' poses and intrinsics in game spec (pinhole, 45 degree vertical field of view, focal length 434.6 px, principal point at the tile centre)action_high: high action level: act {type: act, t, pos, normal, vel, base?} = the blade's state at contact t seconds after the command takes effect (centre pos, face normal pointing at the opponent, velocity m/s) and optionally the base position [bx, by] at contact; limits 0 < t <= 2.5, |x| <= 2.0, -3.3 <= y <= -0.3, -0.5 <= z <= 1.5, speed <= 8 m/s, base within its travel; it replaces the stroke under way; the service moves the base (tobase, else only as much as needed: the contact within 0.25 m sideways and 0.10 m in depth of the point 0.45 m in front of the base; arriving at rest 5 steps before the contact, or as far as it gets) and plans the swing within the real arm's limits (IK at that base position; a jerk-limited joint trajectory within the Panda's velocity, acceleration and jerk limits: a wind-up, a stroke started as late as the slowest joint allows, a follow-through; with too little time the best reachable contact, and the reply's speed_scale / plan_scale say how much of the blade speed the limits deliver; if the direct swing would pass through the table it comes down onto the contact from a pose 0.10 or 0.18 m above it - reply field approach); the reply predicts how close the arm gets; the delivered state scatters by about 1 cm, 1.5 degrees and 5 %; after the stroke the arm returns to its ready pose and the base to its rest position; {type: move, base: [bx, by]} sets that rest position (home again at each point); {type: none} returns the arm to its ready pose. Control authority: the service reads only your robot's own state (joints, targets, servo, base) and your command - never the ball or the opponent; it neither predicts the ball nor aims; its rehearsals run on a robot-only copy. Failure handling: a malformed or out-of-range act is refused (HTTP 400) and changes nothing; a contact time already passed when the act takes effect is not executed (reply stroke 'too late'; the stroke in force goes on); an unreachable pose, a blade speed beyond the joint limits or a base that cannot get there in time is executed as well as the limits allow and the reply says so (ik_residual, blade_error_m, normal_error_deg, speed_scale, base); a new act replaces the stroke under way (format duel: the plan is not rehearsed, and if the trajectory in force predicts a better contact at the new contact step it is kept, reply field kept)action_low: low action level: joint position targets at 100 Hz for the base and the arm, no IK or stroke planner: traj {k0, q: rows of 9 targets [base_x, base_y, q1..q7]} (row i = control step k0 + i, <= 300 rows; consecutive rows within the per-step speed limit - 2 cm per base axis - and three consecutive rows within the acceleration limit: second difference <= acceleration limit x (10 ms)^2 - 8 m/s^2 per base axis, 15 / 7.5 / 10 / 12.5 / 15 / 20 / 20 rad/s^2 for q1..q7; the first row used must satisfy both with the target in force and its velocity), slew {q (9), speed} (every arm joint towards q at speed x its speed limit within its acceleration limit, the base towards q's base position at speed x 2 m/s with bounded acceleration and jerk), hold; the robot's 1 kHz servo follows the targets with a setpoint that never exceeds the real limits (velocity, acceleration, jerk; the arm's torques 87 / 12 N m changing by at most 1 N m per ms), so targets beyond them are followed late; game spec gives the kinematic chain (the base's two prismatic joints first), limits (limits.joint_accel_limit, joint_jerk_limit, the servo's law), the joint controller and the robot's own model (robot_model.robot_only_xml)real_time: the world runs on its own clock at 1/S of real speed (S = timing.slowdown in game spec); it never waits for you; an act (or toss) takes effect at the next 10 ms control step after it arrives (the reply's took_effect); one act and one observation per seat in flight; after each point the world freezes until every player has sent game ready WHY PLANscatter_and_seed: the opponent's serves and returns and the execution scatter are drawn from the task's frozen seed (never shown)- Winner: a player's third undue-delay fault (no toss within 5 s of the serve opening) loses it the match; else the first player to 5 points with a lead of 2, or the first to 7, wins the game (the match); a let scores no point (at most 2 service lets in a row: the server's third is the receiver's point); if 40 points (lets included) are played, the player ahead wins and at a level score the player who won the last point (last resort, not from the rulebook). There are no draws.
- Deviation D1 (rulebook ITTF 2.11, 2.12): one game to 5 points (from 4:4 a lead of 2 is needed, at 6:6 the next point wins: 7 points at most) instead of a best-of-games match with games to 11
- Deviation D2 (rulebook ITTF 2.6.1, 2.6.2, 2.6.4, 2.6.5): the robot holds its paddle and has no free hand: a toss device on the robot makes the toss. The server sends toss {pos, height} (the racket sports' common form): the ball rests stationary at pos for 0.1 s (2.6.1), then it is projected straight up with no spin so that it rises height metres above pos (2.6.2: 0.16 <= height <= 1.0); pos must be behind the end line and above the playing surface (the whole ball, 2.6.4), within 0.9 m of the server's base horizontally and at most 0.9 m above the table (the device's reach). Until the toss the ball is out of sight in the server's column. Not judged: the ball hidden from the receiver (2.6.4; the toss happens in view of both cameras), the free arm (2.6.5). Judged as in the Laws: the toss must fall without touching anything until it is struck, as it falls, behind the end line and above the playing surface (2.6.2-2.6.4, checked at every physics step), and the service must touch the server's court and then directly the receiver's (2.6.3); a dropped toss or any other failed service is the receiver's point (2.10.1.1)
- Deviation D3 (rulebook ITTF 2.5.7): only the blade can strike the ball: the ball touching the handle or arm loses the point
- Deviation D4 (rulebook ITTF 2.10.1.9-2.10.1.11): as in the Laws, the robot or its paddle touching the playing surface (or the floor) is not a fault; touching the net assembly loses the point (2.10.1.10). The table is fixed in the simulation and cannot be moved, so 2.10.1.9 (moving the playing surface) never applies; 2.10.1.11 (the free hand touching the playing surface) does not apply to a one-arm robot that has no free hand; the table physically stops a robot or paddle pressing on it (until revision wallclock-8 / duel-wallclock-6 any contact with the table, net or floor lost the point)
- Deviation D5 (rulebook ITTF 2.10.1.7): any double hit loses the point, deliberate or not
- Deviation D6 (rulebook ITTF 2.15.4): the expedite rule's 13-return limit applies from the first point: the receiver's 13th good return in a rally wins it the point (this bounds every rally); unlike 2.13.3 / 2.15.4 under the expedite system, the service still changes every 2 points (one each from 4:4)
- Deviation D7 (rulebook ITTF 2.9.1.3 (let)): duel: faults by both players at the same instant (both arms touching the table, or both robots touching the ball in the same millisecond) are a let
- Deviation D8 (rulebook - (cost limit, not from the rulebook)): if 40 points (lets included) are played the game ends: the player ahead wins; at a level score the player who won the last point (a game has at most 13 scoring points and, by D12, at most 2 service lets before each of them, so only lets from simultaneous faults (D7) could reach it)
- Deviation D9 (rulebook - (embodiment, not from the rulebook)): the player is a robot arm (Franka Panda, 7 joints) with a paddle on a pedestal carried by an x-y rail base behind its end line: travel |x| <= 1.0 m, 0.13-1.03 m behind the end line (base y from -1.50 to -2.40 m, the column's front 1 cm behind the end line at most), up to 2 m/s, 8 m/s^2 (the drives' force limit) and 200 m/s^3 (estimated) per axis; it cannot lean over the table. Both the arm and the rail obey the real robot's limits (revision wallclock-10): the arm runs on fencing-3's 1 kHz servo, a jerk-limited setpoint within the Panda's joint velocity, acceleration and jerk limits (the jerk also capped by its 1000 N m/s torque-rate limit), torques within 87 / 12 N m changing by at most 1 N m per ms; the rail on a jerk-limited setpoint within its limits. A human player is not limited this way
- Deviation D10 (rulebook - (ITTF chapter 3 regulates delay with warnings and penalty points; not in the Laws)): undue delay has a fixed limit: the server must toss within 5 s (game time) after the serve opens (0.8 s after the previous point, the receiver being ready), else it is a failed service (the receiver's point, recorded as serve_fault:undue_delay); a player's third such fault loses it the match (in place of chapter 3's warning, penalty points and the referee's disqualification for repeated misconduct)
- Deviation D11 (rulebook ITTF 2.13.1, 2.13.2): no lot for the first service: format match - you serve first; format duel - the runner plays both orders of the first server (match.first_server); format duel - before every point both robots are put back at rest in the ready pose with their bases at home
- Deviation D12 (rulebook ITTF 2.9.1.1 (let), 2.13.3 (a let does not change the server); ITTF chapter 3: 3.4.4.1 (play shall be continuous), 3.5.2.1-3.5.2.3 (behaviour that may unfairly affect an opponent: a yellow-card warning, then penalty points)): a service that touches the net assembly and is otherwise good is a let (2.9.1.1), at most 2 in a row: the server's third service let since the last point scored is a failed service, the receiver's point (serve_fault:repeated_let). The Laws set no limit on lets, and a let does not change the server (2.13.3), so a server that can make its service clip the net at will (a low-level program replays the same joint trajectory from the same reset state; the physics is deterministic) could replay it indefinitely and, when ahead, run the game into the 40-point guard (D8); deliberately repeated lets are the conduct chapter 3 sanctions (continuity of play, 3.4.4.1; behaviour that unfairly affects an opponent, 3.5.2.1, with a warning and then a penalty point, 3.5.2.2-3.5.2.3), replaced here, as for undue delay (D10), by a fixed rule: the first two lets in a row are free, the third costs the point. state.serve shows the server lets_in_row and let_limit
- Deviation D13 (rulebook ITTF 2.6.3 (a good service: the server's court, then the receiver's court)): the service's bounce on the receiver's court must be at least 0.2 m from the net (the ball's centre at the contact, serve.SERVE_MIN_DEPTH), else it is a failed service (the receiver's point, serve_fault:short); a short service that touches the net is a fault, not a let. Not in the Laws: under the real restitution (revision 14/11) no robot body here can return 90 % of the services that bounce closer to the net (B9; the Embodied Olympics screening notes), so the receive would decide the game; the scripted opponent's serve library obeys the rule too
Geometry and physics
Everything you need is in game spec: the world frame, the release point, the cameras (pose, field of view, size,
focal_px, principal_point_px; pinhole: u = cx + f * x_right / depth, v = cy - f * y_up / depth) and the
execution scatter. The physics engine is mujoco.
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: 2 CPUs, 5 GiB of memory, 2048 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 7200 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 graded on what stands at that moment, as the sections above say. The service does not count this limit for you: the clocks it reports are the game's own. 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).