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.
Robot badminton: program play (duel-wallclock)
You play robot badminton against a built-in opponent player in the same world (you are seat A). Robot singles badminton on a small court (the BWF court's lengths x 0.4, the net at its BWF height 1.524 m) in real time (slowed down): a Franka Panda arm held to the real Panda's limits, with a racket, on an x-y gantry of ball-screw axes (2 m/s, 15 m/s^2), a point-mass shuttle with the real shuttle's high quadratic drag (terminal speed 6.8 m/s) and no bounce, a racket contact law of gain 4 (shuttles leave the racket at up to about 10 m/s); rally scoring, one game to 11 points; the players' robots serve (the rally winner serves next): the server tosses the shuttle (from rest or rising up to 0.5 m) at a point it chooses and hits it underhand, below 1.15 m, into the diagonal service court; format match-wallclock: you against a scripted computer opponent (levels 1-3, game spec match.opponent_level), format duel-wallclock: two players.
This is Embodied Olympics task badminton-duel-wallclock-program-standard (revision badminton-wallclock-12+duel-14+core-0.2), one frozen instance: you play seat A; your opponent is a built-in player (seat B) that runs inside the simulator service and plays by the same rules, with the same robot and the same limits as you, but it reads the simulator's true shuttle state and your base position (never shown to you) instead of the cameras and picks its shots with a learned policy, the world advanced in lockstep (standard mode; its realtime twin runs at S = 20); the seed is fixed and never shown. The simulator service is at http://localhost:8000.
Time
Standard mode: the world waits for you. The world advances only while you let it: during an open game wait DT (POST /wait, at most DT game seconds, then it stops again) and, for an act you sent, up to the control step at which it takes effect (the step after the state it answers). Between your calls it stands still: your thinking, your program's computation and the service's planning of an act take no game time, so a program has to keep calling game wait (or acting) for the match to go on; a match you leave standing never ends, and it is lost when your session ends (abandoned). game spec says so (timing.clock = lockstep). Wherever this document speaks of the world running on its own clock (in real time, at 1/S of real speed, a slowdown S, "it never waits for you", wall seconds per control step, computation that costs game time), it describes this task's realtime twin; here this paragraph holds. The reviews (their time limit is real time) and the start window are unchanged.
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; 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 (act, toss, move): 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 singles badminton on a small court (the BWF court's lengths x 0.4, the net at its BWF height 1.524 m) in real time (slowed down): a Franka Panda arm held to the real Panda's limits, with a racket, on an x-y gantry of ball-screw axes (2 m/s, 15 m/s^2), a point-mass shuttle with the real shuttle's high quadratic drag (terminal speed 6.8 m/s) and no bounce, a racket contact law of gain 4 (shuttles leave the racket at up to about 10 m/s); rally scoring, one game to 11 points; the players' robots serve (the rally winner serves next): the server tosses the shuttle (from rest or rising up to 0.5 m) at a point it chooses and hits it underhand, below 1.15 m, into the diagonal service court; format match-wallclock: you against a scripted computer opponent (levels 1-3,
game specmatch.opponent_level), format duel-wallclock: two players. match: rally scoring, one game: first to 11 points; from 10-10 a player must lead by 2, and at 14-14 the next point wins (at most 15); the match also ends after 400 hits (both sides) or 40 points played (replayed lets included): then the player with more points wins, at equal points the player who won the last pointplay: there is no bounce: hit the shuttle before it reaches the floor. Your shot is good if your racket meets the shuttle once, on your half, and the shuttle passes over the net and lands in your opponent's singles court (lines are in); after your hit your racket no longer touches it. You lose the point if your shot goes into the net (crosses the net plane below the top), comes down on your own side or lands out, or if a shuttle that is yours to hit lands in your court; an opponent's shot that would land out of your court wins you the point, so you may let it go. Serves (BWF Law 9): the winner of a rally serves the next point (after a let the same server; state.you_serve, state.serve). Before every serve both robots are put at rest in the ready pose at their spots: x = +0.12 in the right service court or -0.12 in the left one, y = -1.6 (your frame); both stand in their right courts when the server's score is even, else in their left ones (diagonally opposite); the spot is your base's home for the point. From 1 s after play resumes (the receiver is ready; state.serve.phase 'open') the server has 3 s to toss the shuttle with {'type':'toss','pos':[X,Y,Z],'height':H}: when the command takes effect (the same lead as an act) the shuttle appears at that point (0.5 <= Z <= 1.8, within 1.0 m horizontally of your base, Y <= -0.5) and is released from rest (H = 0 or omitted) or rises H straight up (0 <= H <= 0.5) before it falls (until then it is held beside the server). Then hit it with your racket (an act, which you may send before the toss): the serve is good if your racket meets the shuttle below 1.15 m, the shuttle leaves the racket upwards, passes over the net and lands in the receiver's diagonally opposite service court (between its short service line and its back line, lines in) or is returned. It is the server's fault (the receiver's point) if it does not toss the shuttle in time (undue delay: every time, never a disqualification), misses the shuttle, hits it above 1.15 m or not upwards, or the serve hits the net or lands outside that court. Both bases must stay within 5 cm of their spots until the serve is hit (or faulted): a base moving earlier is that player's fault (both at once: a let, replayed)opponent: format match-wallclock: a scripted computer opponent. You serve the first point; the opponent serves when it won the last rally: from its service court at 1.05 m, upwards, high and deep or short into your diagonal service court, at most 18 m/s, always within your reach (level 1: 70 % high serves, towards the middle of the court; levels 2-3: 50 % high, wider and closer to the short service line); it stands still in its service court while you serve. It never makes an unforced error: it returns every shuttle it can reach, into your court. It is a robot too, on a base with the same limits as yours (2 m/s, 15 m/s^2 per axis): a reaction time after your hit it predicts the flight, its base moves until the shuttle is within its reach, and its arm then needs 0.55 s for a full stroke; with less than 0.3 s to spare it is under pressure (a weak, high lift into the middle of your court when hard pressed, a normal return in between, an attack when it has time); a shuttle it meets too late for a full stroke but with at least 0.45 s of arm time it still blocks (a weak lift); later still beats it, and shuttles arriving fast press it too. Its shots leave a robot waiting in the middle of your court time to reach them (level 1: 0.45 s to spare, levels 2-3: 0.25 s), except its kills: some of its attacks (level 1: 20 %, level 2: 50 %, level 3: 90 %) are played without that guarantee. It plays 70 % of its shots to the side away from your base, and when your base stands within 1.2 m of the net it lifts 70 % of its returns over your head (its clears pass above 2.8 m over your forward court). After its own stroke its base stays put for 0.35 s and then walks at 0.6 m/s to where it waits: 70 % of the way towards the mean landing point of your last 4 shots. It reads your habits: when 4 of your last 5 changes of side agree (always switching, or always staying) and your last 3 shots were all short or all deep, it predicts your next shot and moves 90 % of the way there at full speed. So where you place the shuttle (away from it, and not in a pattern) and where your base waits both matter. Level 1: reaction 0.30 s, reach 0.85 m, mild attacks (smashes up to 15 m/s, 70 % of the court's width); level 2: reaction 0.25 s, reach 0.85 m, level 2's attacks (up to 17 m/s, the court's full width); level 3: as level 2 with a reaction of 0.20 s, a reach of 0.9 m and a fast walk back (2 m/s). Its shots leave its racket at most at 18 m/s (what a racket of gain 4 gives)world: metres; your own frame: x to your right, y towards the opponent, z up. Floor z = 0; a small court, the BWF court's lengths x 0.4 (the net at its BWF height): singles court |x| <= 1.036, |y| <= 2.68 (lines in); the net is the plane y = 0 with its top at z = 1.524 (posts at x = +-1.22); short service lines at |y| = 0.792; the centre line x = 0 divides each half into a right and a left service court. Your half is y < 0robot: a Franka Panda arm held to the real Panda's limits (joint velocity 2.175 / 2.61 rad/s, acceleration 15 / 7.5 / 10 / 12.5 / 15 / 20 / 20 rad/s^2, jerk, torque 87 / 12 N m, torque rate 1000 N m/s:game specarm_limits; 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 - the gantry brakes to rest - and then resumes from rest, so the stroke under way is lost; the stroke controller avoids swings whose rehearsal triggers it and the act's stroke notes say so; final fields velocity_reflexes) on a 1.0 m pedestal whose base rides a gantry (|bx| <= 1.5, -3.53 <= by <= -0.5, up to 2 m/s and 15 m/s^2 per axis (a ball-screw gantry); it starts each point on the point's spot (+-0.12, -1.6), see play, and then waits where you put it (move) or where it last struck); the racket head centre is 0.56 m beyond the flange; the string face is a disc of radius 0.14 m. The racket meets shuttles 0.4-2.5 m above the floor. The arm needs time: from its ready pose (racket head 1.15 m high) a stroke is delivered reliably about 0.8-1 s ahead, and its head reaches about 2-2.3 m/s along a forward face normal (at 0.9 of the joint velocity limits)shuttle: a point mass under gravity (9.81 m/s^2) and quadratic air drag, dv/dt = g - K |v| v with K = 0.212 per metre (terminal speed 6.8 m/s): hit at 40 m/s it slows to about 10 m/s within 0.3 s, and a high shuttle falls almost vertically at close to 6.8 m/s. No spin, no wind, no bounceracket_contact: the racket meets the shuttle when the shuttle's centre crosses the string plane within 0.14 m of the head centre; the shuttle leaves exactly along the face normal n (the side the head moves towards, relative to the shuttle) at the speed 4 max(0, v_head.n) (1 - 0.3 (r/0.14)^2) + 0.15 max(0, -v_in.n), where v_head is the head velocity, r the contact's distance from the head centre and v_in the shuttle's incoming velocity; the rest of the head and incoming velocity is lost. A head speed along the normal of 1 m/s gives about 4 m/s, 2.5 m/s about 10 m/s (a lofted shot of 10 m/s flies about 4-5 m and 1.3-1.5 s)act: high level: {'type':'act','t':T,'pos':[PX,PY,PZ],'normal':[NX,NY,NZ],'vel':[VX,VY,VZ]}: the racket's state at contact, T s after the act takes effect: the head centre, the string-face normal and the head velocity (m/s). Limits: 0 < T <= 5, |x| <= 2.136, -3.68 <= y <= -0.3, 0.2 <= z <= 3.0, speed <= 8 m/s. The act takes effectact.lead_stepscontrol steps after the step at which it arrives (game spec; the stroke is planned meanwhile) and replaces the stroke under way; until then the robot keeps its current command. The controller drives the base to stand for a forehand at the contact point (or as far as it gets in time) and swings the arm within the joint speed and acceleration limits (a slower head when the time left does not allow the commanded one; the reply's stroke notes say so, and state.command gives the rehearsal's head velocity vel_rehearsed and position error pos_error_rehearsed_m); it knows nothing about the shuttle. The arm and racket cannot pass through the robot's own pedestal, platform and links (they stop the arm): the controller takes a swing that its rehearsal finds clear of them when it can (else the stroke notes say self-collision). The delivered state scatters by about 6 mm, 0.8 degrees and 3 % (seeded; each player's execution scatter is independent of the opponent's within a match: your acts draw your own stream, and the scripted opponent's choices draw others; format duel-wallclock: the two matches of a duel pair (the same seed, the first server swapped) swap the scatter sequences, so over the pair both players meet the same draws). {'type':'none'} cancels the stroke (the arm returns to its ready pose, the base stays where it is), with the same lead; act may carry 'base':[BX,BY], where the base stands at contact (default: the forehand stance for pos: (PX, PY) - 0.62 r (1, 1), r = max(0.30, 0.95 - 0.35 |PZ - 1.333|)); after a stroke the base stays where it struck (no automatic return); {'type':'move','base':[BX,BY]} sets where the base waits (it goes there once no stroke is under way; until a serve is delivered both bases must stay on their spots), with the same lead; {'type':'toss','pos':[X,Y,Z],'height':H} tosses the shuttle for your serve (see play), with the same leadlowlevel: low level: {'type':'traj','q':[[base_x, base_y, q1..q7], ...]}: joint targets, one per 10 ms control step from the next step on (then the arm returns to its ready pose and the base holds its last target, or goes to the point of amove), each within the joint ranges and speed limits ofgame specjoints, the base's within the gantry's speed (2 m/s) and per-axis acceleration (15 m/s^2, from the targets' second differences), else refused; the arm's targets pass through the Panda's setpoint generator (acceleration and jerk limits: a target beyond them is reached later); none and serve as above, at the next stepobservation: a PNG of 2 rows x 4 columns of 480 x 360 tiles: row 1 a camera behind and above your base line looking down the court, row 2 a camera at the side of the court (x < 0) looking along +x (your half on the right); the columns are frames 60 ms apart, newest on the right, with each frame's step and game time (view_steps, view_sim_times). No shuttle coordinates: the shuttle is drawn enlarged, an orange cork (12 cm ball centred on its position) with a white skirt behind it.game specgives both cameras' poses and intrinsics (pinhole, 45 degree vertical field of view, focal length 434.6 px, principal point at the tile centre). The state gives your robot (robot_base_xy, q_arm, racket_pos, racket_normal), what you heard (tosses, serves and hits, with their times), whether the shuttle is coming to you, and the serve: you_serve, serve.court (right or left), serve.phase (waiting: the receiver is getting ready; open: the server may toss; tossed; done: the serve was delivered), serve.opens_in_s and serve.deadline_in_s for the server, serve.tossed_at_step; a point lost by a service fault says 'serve_fault:: ...' (undue_delay, missed, too_high, not_upwards, net, out, moved), the receiver's early move 'receive_fault:moved: ...'duel: format duel-wallclock: another player controls an identical robot across the net (here the built-in seat B); in each player's frame its own half is y < 0. match.first_server serves the first point; then the winner of each rally serves (both players serve by the same rules, see play)- Winner: first to 11 points (from 10-10 by 2, at most 15); at the match limit (400 hits or 40 points played) the player with more points; at equal points the player who won the last point that was not a let; then (last resort, not from the rulebook) the player who received first (format match-wallclock: the opponent). There are no draws.
- Deviation D1 (rulebook 7): one short game instead of best of three games to 21 (cap 30): first to 11 points (one game of the 5 x 11 scoring BWF has trialled), from 10-10 a two-point lead is needed, at most 15 (14-14: the next point wins); the match also ends after 400 hits (both sides) or 40 points played (lets included): the player ahead wins, at equal points the winner of the last point
- Deviation D2 (rulebook 9.1.5-9.1.8): the robot has no free hand to hold and drop the shuttle: the server tosses it with the command toss {pos: [x, y, z], height: H} (the common racket-sport toss, docs/conventions/racket_serve_zh.md): when the command takes effect the shuttle appears at that point (0.5-1.8 m high, within 1.0 m horizontally of the server's base, on its half) and is released from rest (H = 0) or projected straight up to rise H (at most 0.5 m; the Laws do not forbid a small toss); until then it is held beside the server. The toss has no spin (a point mass has none, Law 9.1.5). Judged: the server's racket must hit it (a miss is a fault, Law 9.1.8), with the shuttle below 1.15 m at the hit (Law 9.1.6, judged at the shuttle's point: it has no size) and leaving the racket upwards (Law 9.1). Not judged: the racket hitting the base of the shuttle first and moving forwards throughout the service (Laws 9.1.5, 9.1.7)
- Deviation D3 (rulebook 13.3-13.4): the shuttle is a point mass: a crossing of the net plane below the net top (between the posts) is a fault of the hitter; touching the net or reaching over it is not judged; a racket meets the shuttle only on its own half and only when it is that player's turn (no double hits)
- Deviation D4 (rulebook 9.1.3-9.1.4): before every serve the referee puts both robots at rest in the ready pose at a fixed spot in their service courts (diagonally opposite: the right courts when the server's score is even, Law 10.1): x = +0.12 (right court) or -0.12 (left court), y = -1.6 in each robot's frame (the legacy spot 0.3 / 4.0 m x 0.4); after the serve there is no automatic return: a base stays where it struck until its player moves it (
move). Standing still (Law 9.1.4) is judged on the base: a base more than 5 cm from its spot before the serve is delivered (hit, or faulted) is that player's fault; both at once: a let (Law 14.2.2). The base is a real gantry of ball-screw axes (Festo EGC-185-BS-KF-40P, spindle axes EGC-BS-KF technical data: 2.0 m/s, 15 m/s^2, feed force 3000 N, working stroke up to 3000 mm; jerk 25 x the acceleration, estimated; a low-level command is refused beyond its speed and per-axis acceleration) and moves within |x| <= 1.5, -3.53 <= y <= -0.5 - Deviation D8 (rulebook 1.1-1.6, 1.10): a small court: every line of the BWF court at 0.4 of its length (singles court 2.072 x 5.36 m: side lines at |x| = 1.036, back lines at |y| = 2.68, short service lines 0.792 m from the net, doubles side lines (posts) at |x| = 1.22; the singles back line is also the long service line, as on a singles-only court); the net keeps its BWF height (1.524 m at the centre). Why: with real-robot limits the shuttle leaves the racket at about 10 m/s at most (D9), and the real shuttle's drag (terminal speed 6.8 m/s, kept) carries it about 4-5 m: the 13.40 m court cannot be played (a clear needs 40-50 m/s). The robot is human-sized (its racket meets shuttles 0.4-2.5 m high), so the net is not scaled. No official reduced format is this short (the shortest are the junior mini-badminton courts, about 11.9 m, nets 1.30-1.40 m; wheelchair singles' live depth 4.72 m per side): the scale follows the robot's measured range (tasks/embodied-olympics-match/README.md)
- Deviation D9 (rulebook -): the robots: a Franka Panda arm held to the real Panda's joint velocity, acceleration, jerk, torque and torque-rate limits (bodies/franka_panda) on a real gantry (D4); the racket is not simulated as a string bed: a contact law sends the shuttle along the face normal at 4 x the head speed along the normal (a real racket gives about 1.5 x; 4 lets the Panda's best swing, about 4.4 m/s, stand for that of a real fast badminton arm, ANYmal + DynaArm 2025, 10-12 m/s: the real-limits audit's option c)
- Deviation D5 (rulebook -): the last resort of the no-draw rule (equal points at the match limit and no point won) is not from the rulebook: the player who received first wins (format match-wallclock: the opponent)
- Deviation D6 (rulebook 9.1.1, 16.6-16.7): undue delay has a fixed limit: the server must toss the shuttle within 3 s after the receiver is ready (1 s after play resumes, Law 9.4), else it is a service fault (the receiver wins the rally: its point and the next serve); every undue delay is such a fault, never a disqualification, instead of the umpire's warning and the referee's discretion (Laws 16.7.1-16.7.2)
- Deviation D7 (rulebook 6): no toss: format duel-wallclock: the runner plays both orders of the first server (match.first_server); format match-wallclock: you serve the first point
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 (robots at 1 ms: the arm through the Franka Panda's setpoint generator and torque limits, the base by PD within the gantry's force) + a point-mass shuttle with quadratic drag integrated at 1 ms (sim/bm.py).
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 14400 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).