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.

22.8 KB
Raw Blame

Robot soccer 2 v 2: program play (match)

You play robot soccer 2 v 2 against a scripted opponent (you are seat A). Robot soccer 2 v 2 under the RoboCup Humanoid Soccer League rules: four simulated Booster T1 humanoids (lower bodies on the released walking policy, held to the real robot's joint limits) and one ball on a boarded 10 x 7 m pitch with two goals, two halves of 5 minutes of game time, a penalty shoot-out when level; each robot takes a walk velocity command, stand or a swing-leg kick, and you see the game only through your robots' head cameras; in the match format you command both robots of team A against a scripted team, in the duel format another player commands team B, in the team format each robot has its own player and teammates talk only through the team channel, in the team_match format each robot of team A has its own player against the scripted team; match_overhead and duel_overhead are match and duel seen through fixed overhead cameras instead of the head cameras. This is Embodied Olympics task soccer-match-wallclock-program-standard (revision soccer-2v2-10+core-0.2), one frozen instance: the scripted opponent at level 2, the world slowed S = 5 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 600 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. 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/.

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 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 soccer 2 v 2 under the RoboCup Humanoid Soccer League rules: four simulated Booster T1 humanoids (lower bodies on the released walking policy, held to the real robot's joint limits) and one ball on a boarded 10 x 7 m pitch with two goals, two halves of 5 minutes of game time, a penalty shoot-out when level; each robot takes a walk velocity command, stand or a swing-leg kick, and you see the game only through your robots' head cameras; in the match format you command both robots of team A against a scripted team, in the duel format another player commands team B, in the team format each robot has its own player and teammates talk only through the team channel, in the team_match format each robot of team A has its own player against the scripted team; match_overhead and duel_overhead are match and duel seen through fixed overhead cameras instead of the head cameras.
  • frame: metres, seconds; your team's frame: you attack the goal at x = +5 and defend the goal at x = -5, y to the left when facing +x, z up, yaw counter-clockwise from +x (both teams see the pitch this way in their own frame)
  • pitch: field of play 10 x 7 m (|x| <= 5, |y| <= 3.5), halfway line x = 0, centre circle radius 1.0 m, penalty areas 2.0 m deep and 4.0 m wide, goal areas 1.0 x 3.0 m, penalty marks 1.5 m in front of each goal line; boards 0.3 m high on the touchlines and goal lines except the goal mouths; goals 2.6 m wide (|y| < 1.3), 1.8 m high, 0.6 m deep with nets
  • ball: radius 0.11 m, 0.45 kg, orange, a thin shell; on the turf it rolls with a deceleration of about 0.52 m/s^2 (a kicked ball first skids and loses about 2/5 of its speed); it bounces: a 2 m drop rebounds about 0.8 m, it comes off a post or a board at about 0.7 of its speed; a rolling ball that runs into a standing robot's legs mostly stops at its feet (its spin takes the rebound)
  • robots: Booster T1 lower bodies (legs and trunk, no arms), trunk about 0.68 m above the floor, head camera about 1.0 m (it sees the floor from about 0.55 m ahead of the trunk on: a ball at your feet is out of view); held to the real T1's leg limits (motor torques 45 / 30 / 30 / 60 / 24 / 15 N m for hip pitch / roll / yaw, knee, ankle pitch / roll, a torque-speed envelope at the joint speed limits 12.5 / 10.9 / 10.9 / 11.7 / 18.8 / 12.4 rad/s, a rated (continuous) torque of 60 % of those torques: a motor held near its peak for more than about 5 s folds back to it (thermal), a 1 kW bus per robot, the walking-command rate limit above); team A wears blue, team B red, bold white numbers 1 and 2 on the front and back; robots collide and contact can make a robot fall; a robot whose trunk drops below 0.40 m has fallen: it lies still and is stood up where it lies 3 s later
  • actions: per robot (entity = its number): walk v = [vx, vy, wz] (the walking controller's body-frame velocity command, each in [-1, 1] m/s, m/s, rad/s; the command the controller sees moves toward yours by at most 2 m/s^2, 2 m/s^2, 4 rad/s^2 (the robot's state shows it as command.walk_now); the robot reaches about 0.75 of a forward command; held until the next command), stand, kick (power in [0, 1], default 1; aim in [-0.6, 0.6] rad, default 0: up to 0.6 rad away from the support foot's side (right foot: to the right, left foot: to the left), up to 0.3 rad across it (larger values across are clipped); foot right (default) or left; style swing (default), step or push; optional at = [t, x, y]: the timed kick, below; optional v for step). Swing: the swing kick of the chosen leg (right by default) from a standing stance: the walking controller first stops the robot and the kick waits for the ball to roll slower than 0.15 m/s (if either takes longer than 1 s the kick is called off and the robot stands; your events then show kick_cancelled with the reason), then the kick shifts the weight onto the other foot, winds the kicking foot back and swings it through the ball as it lies when the kick starts (control authority: the kick reads the ball's position once, when it starts, and moves the foot's path onto it by at most 0.08 m sideways, the strike point clipped to 0.05-0.32 m beyond the support foot's toe line and 0.03-0.12 m high; it never follows a rolling ball, predicts or chooses a direction), along the robot's heading turned by aim (+ = left), returns to the standing pose and steps in place; the ball is hit about 2.4-2.9 s after the command and the kick ends after about 4.7-5.6 s; it hits the ball well only if the ball's centre lies 0.26-0.38 m ahead of the trunk and 0.02-0.10 m to the kicking foot's side (right foot: to the right; left foot: to the left) when the kick starts (a ball farther out may be hit badly and the foot may land on it); power sets the swing's speed: a clean hit sends the ball off at about 1.2 m/s at power 0 to 4.3 m/s at power 1 and it rolls on at about 0.8, 1.0, 1.8, 2.45 and 2.8 m/s at power 0, 0.25, 0.5, 0.75 and 1 (about 0.6, 1.0, 3.1, 5.8 and 7.5 m). Step: the in-walk kick: the robot walks on with v (default: the walk under way, else [0.3, 0, 0]) and the first lift-off of the kicking foot with the ball 0.16-0.40 m ahead of the support foot and within 0.08 m of the kicking foot's line (about 0.16 m to that side of the trunk) starts the kick: the walking controller keeps the support leg and the balance, the kicking foot winds back (0.08 s), swings through the ball as it lies then (2.4 + 1.6 power m/s nominal foot speed, along the heading turned by aim) and comes back to a short step (0.08 s), then the controller puts it down and steps to a stop (0.6 s); contact typically 0.5-1.5 s after the command; the ball leaves at about 2.7-3.9 m/s and rolls on at about 1.6-2.6 m/s (power 0-1); if no step reaches the ball within 2 s the kick is called off (kick_cancelled); the same control authority as the swing (the ball read once when the swing is planned, the path moved onto it by at most 0.08 m sideways). Push: the toe-poke run-up (stand 0.5 s, walk straight at 0.6 + 0.4 power m/s holding the heading until a foot is past the ball's centre, at most 2.64 m, stand 0.5 s; best with the ball 0.90-1.05 m ahead and 0.10-0.20 m to the right; about 1.3 m/s, never falls; aim does nothing). Wider aims: the ball must lie where the swing's line passes for that aim (robot.strike_zone.swing_by_aim: ahead and left of the trunk per aim, right foot; the left foot mirrored); the ball leaves 0.05-0.15 rad less wide than aimed at the widest aims. Timed kick (at = [t, x, y], swing only): you say where the ball's centre will be (x, y in your frame) and when (t s from now, at most 6); the kick does not wait for a still ball and never reads the ball: the robot stops, prepares as for every swing (about 2.6 s) and keeps the foot wound up until the swing must start so that the strike point meets (x, y) at t (if t is shorter than the preparation, it strikes as soon as it can and your events show kick_late with the delay); sending the same kick again (same foot and aim) before the swing starts only moves t and (x, y) (no new preparation, the robot's state shows command.at as now planned; the foot stands on one leg while it waits: an update that moves the point by more than a few centimetres jerks the foot and can unbalance the robot); a rolling ball arriving from the front half is struck as by a still one (a ball crossing the swing leaves turned by its own sideways speed: about 0.3-0.6 rad per m/s). A robot can fall during a swing kick (the kick ends; it is stood up 3 s later). A command takes effect at the next 20 ms control step and replaces the one under way (also a kick); one act per robot in flight; a command for a penalized or fallen robot is refused (HTTP 409)
  • observation: per own robot one head-camera tile (480 x 360, 80 degree vertical field of view, tile robotN; during a review the frame before the stoppage); its own state (pose: exact self-localization in your frame, velocity, IMU, trunk height, joints, fallen, penalized, command); the referee's information (score, period, clock, kick-off, every robot's penalty, the shoot-out) and its events of the current unit (goals, penalties, stoppages; falls and called-off kicks only of your own robots); no ball or opponent coordinates
  • match_format: you (seat A) command both robots of team A against the scripted team B of level RCB_LEVEL 1-3, default 2; every level kicks with the in-walk kick (style step) (level 1, a warm-up, reacts to the ball 0.6 s late, walks at most 0.45 m/s and lines up its kicks loosely; level 2 0.3 s, 0.65 m/s, tighter; level 3, a challenge level: both robots go for the ball, react at once, walk at most 0.8 m/s and line up most precisely, the strongest scripted team found in the screening); success = winning the match
  • duel_format: seat A commands team A (robots A1, A2), seat B team B (B1, B2); FIRST_PLAYER's team kicks off first (and shoots first in a shoot-out); play both orders
  • team_match_format: two seats, one robot each (A1, A2: team A) against the scripted team B of level RCB_LEVEL 1-3, default 2 (the levels of the match format); you see only your robot's camera and state; your teammate is reachable only through the team channel (POST /say, delivered with the game step it was sent); success = your team winning the match
  • team_format: four seats, one robot each (A1, A2 against B1, B2); you see only your robot's camera and state; your teammate is reachable only through the team channel (POST /say, delivered with the game step it was sent; the opponents never see it)
  • overhead_formats: match_overhead and duel_overhead are match and duel with an overhead view instead of the head cameras: two fixed cameras 6.0 m above the floor look straight down, one over each half (tiles overhead0 = your own half, overhead1 = the opponents' half, 600 x 800 each), each tile a map of its half in your team's frame (image right = your +x, image up = your +y; calibration in game spec camera.overhead); the images show the world 0.04 s ago (as RoboCup SSL's shared vision); no head cameras; your robots' own state and the referee's information as in the other formats; the same scripted levels as match
  • kickoff: your frame: when you kick off, your robot 1 stands about (-0.32, 0.06) facing +x behind the ball on the centre mark (the ball in its swing zone) and robot 2 about (-2.5, -1.5); when the opponents kick off, about (-1.6, 0.4) and (-3.6, -0.8) (up to 0.3 m off, seeded); before the ball is in play only the kick-off team's robots may be in the centre circle and nobody in the opponents' half (else a removal penalty)
  • stoppages: a goal, half time, full time (level: the shoot-out), a dropped ball (the ball left the pitch, or nobody near the ball for 30 s) and every shoot-out kick end a unit: the world freezes and every player sends game ready WHY PLAN
  • Winner: more goals after two halves wins (or a 10-goal lead at any time, the mercy rule); if level, a penalty shoot-out of 3 kicks each (the team that kicked off first shoots first); if still level, up to 3 sudden-death rounds, each won by the better kick category (goal, saved, post, wide, other, no kick); then (last resort, not from the rulebook) a coin toss drawn from the seed. There are no draws.
  • Deviation D1 (rulebook Law 1): pitch 10 x 7 m (HSL S-Field 9 x 6, M-Field 14 x 9); boards 0.3 m high on the touchlines and goal lines (open goal mouths), no border strip; goals 2.6 x 1.8 m, 0.6 m deep
  • Deviation D2 (rulebook Law 3): 2 v 2, no designated goalkeeper, no substitutes; robot-to-robot communication: in the team and team_match formats the team channel (at most 512 bytes per message, one message per robot every 0.2 game seconds, 4000 per robot and match, teammates only; 4000, not 3000: 3000 is exactly a full regular time of 600 s at the 0.2 s rate, so a robot that talks at the full rate would be refused in the shoot-out after it); in the match and duel formats one player commands both robots (no channel needed)
  • Deviation D4 (rulebook Law 7): 2 x 5 minutes of game time (HSL 2 x 10 min; 2 x 2.5 min up to soccer-2v2-4), a review at half time, no change of ends (each team's frame stays), no timeouts; the world and the clock freeze at every stoppage until the reviews; ball-stop extension at most 3 s; mercy rule (10 goals) kept
  • Deviation D5 (rulebook Law 8): the referee places the robots for a kick-off (seeded positions, up to 0.3 m off the nominal spots); the ball is in play when it has moved 0.15 m or 10 s after play resumes; the kick-off team must touch the ball outside the centre circle before it can score (else no goal, the other team kicks off); dropped ball: ball on the centre mark, robots placed in their halves; game stuck: local 15 s (the nearest robot removed; 10 s up to soccer-2v2-3, longer now that a swing kick takes about 5 s), global 30 s (dropped ball), with a 0.3 m ball-movement threshold and 1 m proximity
  • Deviation D6 (rulebook Laws 9, 13, 15-17): the boards keep the ball in: no kick-ins, goal kicks or corners; a ball resting at a board (within 0.3 m of a touchline, or of a goal line beside the goal, moved less than 0.3 m for 3 s) is moved 1 m straight inwards while play goes on; no free kicks (a foul only removes the offender); a ball that ever leaves the pitch restarts with a dropped ball
  • Deviation D7 (rulebook Law 10): no draws: a level match goes straight to the penalty shoot-out
  • Deviation D8 (rulebook Law 12 (pushing)): measurable pushing: an opponent falls within 0.5 s of contact while the offender moved towards it faster (> 0.15 m/s more); or an opponent pushed more than 0.6 m back during one contact (gaps up to 0.5 s) by a robot moving towards it faster; or contact over 5 s (the faster mover); a kicking robot within 1.3 m of the ball is exempt
  • Deviation D9 (rulebook Law 12 (illegal position, defence)): added: both robots of a team inside their own penalty area (2 x 4 m, the goal included) for more than 5 s: the one farther from the ball is removed (not counted as an offence)
  • Deviation D10 (rulebook Law 12 (ball holding, fallen robot, removal penalty)): ball holding = the ball's centre within 0.16 m of a standing robot's trunk centre for more than 5 s; a fallen robot (trunk below 0.40 m) lies still 3 s and is stood up where it lies (no penalty: the walking policy cannot get up); removal penalty 15 s + 5 s per counted team offence (pushing, ball holding), served off the pitch beside the robot's own half, re-entry on the touchline; penalties end at half time; no cards
  • Deviation D11 (rulebook Law 14): shoot-out: 3 kicks each, then up to 3 sudden-death rounds ranked by the HSL kick categories (goal, saved, post, wide, other, no kick), then a seeded coin toss; each team shoots at the goal it attacks; strikers robot 1, 2, 1, the keeper the other team's robot with the same number; 20 s to touch the ball; the keeper stays within 0.6 m of its line until the touch (else a goal); the team that kicked off first shoots first
  • Deviation D13 (rulebook Law 4 (players: robots)): the robots are Booster T1 lower bodies (legs and trunk): the real T1's two 4-joint arms are not modelled (no arm motion, no arm contact, no dive or get-up motion); the legs are held to the real T1's limits (Booster URDF torques and joint speeds; estimates of bodies/booster_t1/body.toml: a linear torque-speed envelope, a rated torque of 60 % of the URDF torque with an I^2 t foldback after about 5 s at the peak, a 1 kW bus per robot, a walking-command rate limit)
  • Deviation D14 (rulebook Law 4 (players: robots), robot perception): each robot's own pose comes from the simulator (exact self-localization in the team frame); a real T1 localizes itself from its camera and odometry with errors of several centimetres to decimetres. The ball and the other robots are only in the camera images
  • Deviation D15 (rulebook Law 1 (field surface: artificial turf 20-30 mm)): the turf is a ball model calibrated to the FIFA Quality Programme for Football Turf (soccer-2v2-8; up to -7 the ball rolled with 0.15 m/s^2 and hardly bounced): a constant rolling deceleration of 0.52 m/s^2 (the FIFA roll test, a ball leaving a 1 m ramp at about 3.2 m/s, rolls 9.8 m here: allowed 4-10 m; the low end of 0.51-1.28 m/s^2, nearest RoboCup practice), a 2 m drop rebounds 0.81 m (allowed 0.60-1.00 m), the ball a thin shell (a ball struck at its centre skids and rolls on at 3/5 of its speed); not measured on a real HSL field (30 mm turf); a constant deceleration instead of one that grows with speed

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 3.3.7 (2 ms physics steps, 20 ms control steps; four Booster T1 lower bodies on the released walking policy, a model-based swing kick and an in-walk kick, a ball calibrated to FIFA turf (bounce, rolling deceleration), the real T1's leg torques, torque-speed envelope and walking-command rate; robot-robot, robot-ball, goal and board contacts).

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).