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.

8.3 KB
Raw Blame

Quadrotor landing adaptation

Make the quadrotor land gently on the visible circular pad and remain settled. The deployment simulator includes unmodeled dynamics. The nominal simulator and policy code in this image are available for inspection and training; the deployment simulator is accessed only through the client.

Use python -m scripts.quadrotor_landing.public.client describe to inspect your remaining budget. Develop a numeric policy following public/policy.py. The controller executes at 100 Hz with four bounded rotor-thrust commands. This task fixes the feedback-controller structure; you may train its three-axis residual-force model and tune its public gains. It does not accept arbitrary executable controllers.

Submit each candidate with python -m scripts.quadrotor_landing.public.client deploy --policy policy.json --note 'Observed failure and intended change' --out feedback.json. The three deployment rounds share three adaptation cases. Feedback includes 20 Hz noisy navigation, IMU specific force, measured rotor RPM, your commands, and sixteen timestamped image samples. An episode that crashes or makes the simulation diverge ends at that moment: its telemetry and image samples stop there. Use only these observations to estimate the mismatch. Write your own fitting and analysis code. The nominal simulator is scripts/quadrotor_landing/public/nominal.py. Save each policy, your code changes, and a concise diagnosis. Do not look up task-specific solutions or hidden evaluator information.

Finish with python -m scripts.quadrotor_landing.public.client seal --round-id round-3 --note 'Why this policy was selected'. You may select any completed round. This is irreversible for the session. Six held-out cases are evaluated afterward; their data are unavailable during adaptation. Counts and deadline in the live contract are authoritative.

The observations use metres, seconds, world-frame position/velocity, a body-to-world quaternion in wxyz order, body angular velocity in rad/s, body-frame IMU specific force in m/s², and rotor speeds in RPM. The nominal thrust coefficient and geometry are public. The base plane is at world z=0; the nominal body origin is 0.09 m above it at touchdown. Camera frames are 1280×720 with a fixed world camera and no state or score overlays. The live contract identifies the rendering style. The commanded landing-pad position is pad_position in each observation. This is a public task goal, not a measurement of the robot. It remains fixed throughout the episode. Initial x/y and pad x/y are sampled in [-1, 1] m, conditioned on at least 0.5 m horizontal separation. Initial body-origin height is 0.8–1.5 m. Episodes last 16 s. Landing elsewhere on the floor fails, even if the robot later slides onto the pad.

The landing-policy/2 controller first approaches the pad horizontally, then descends; both durations and the feedback gains are tunable. Its learned correction has 3 × 14 bounded coefficients. The nominal model includes published mass and thrust calibration; inertias and geometry are approximate. This task does not claim a fully calibrated airframe.

Scoring (oracle-relative-time/1, task random-pad-landing/4): before adaptation begins, the evaluator freezes a private safe reference time T_ref for each case using a full-model numerical oracle. Safe completion within 1.10 × T_ref earns 100. Later safe completion earns 60 + 40 × clip((16 - completion_time_s) / (16 - 1.10 × T_ref), 0, 1). Failure earns zero. This rewards quick safe completion relative to the difficulty of that particular start, pad and dynamics, rather than an arbitrary fixed target time. The reference is the best verified result of a finite optimization over the bounded controller family with exact state and residual feedback, not a certified global optimum. Actual reference times, oracle policies and trajectories are private. The 10% allowance is fixed for every case.

Completion time runs from episode start through one continuous second of settled on-pad contact. Instability or takeoff resets the settled interval; the vehicle must stay settled through the 16-second episode end. Safe success requires no off-pad foot contact or body/rotor ground collision; first-contact vertical speed below 0.4 m/s and horizontal speed below 0.25 m/s; and a final continuous settled second with pad-relative horizontal error below 0.15 m, tilt below 0.15 rad, and translational speed below 0.08 m/s. Tilt over 0.8 rad, leaving the world square [-3, 3]² m, or body height over 3 m also fails. Missing the deadline earns zero.

Aggregate grading reports mean score, success rate, and mean successful completion time. Actual scores, completion times, contacts, success flags and oracle data are not returned during adaptation; infer performance only from the allowed noisy observations and images. These scoring weights are benchmark choices, not paper-derived values.

This task uses eai-policy/1.0. Work in /app, preserve your code, policies, exact feedback and short iteration diagnoses in /app/output/. Nominal training is unrestricted within the resource and time limits. Only validated numeric policies reach deployment; editing your local controller implementation does not change the evaluator's controller. The deployment endpoint is http://127.0.0.1:8000; GET /spec describes its protocol. A deployment request consumes one round before execution. No reset, held-out query, score query or arbitrary code execution is provided.

Seal a completed round to select it. If you finish or time out without sealing, the evaluator selects the latest round completed before the cutoff. In-flight or late rounds cannot be selected. With no eligible round the score is zero. Harbor stops the agent at its time limit; the service also closes after the same duration from the first policy API request. Calibration and health checks do not consume deployment rounds. Binary benchmark success requires all six held-out cases to land safely; the continuous 0–100 score is reported separately as final_reward (progress is that score divided by 100).

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, 4 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 deployment service counts, deployments included. When it is up you are stopped without warning and the evaluator takes the round you sealed or, if you sealed none, the latest deployment that completed before that moment; a deployment still running then is not graded. The service's own deadline counts the same limit from your first request to it, so it never runs out before your time does. 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).