The rocket booster pilot (episode 18)
From episode 18 of A Million Tries ("My AI Landed a Rocket From 70 km. Then I Caught It Cheating."). A small neural network that flies a simulated Falcon 9 first stage from 70 km up to a drone ship at sea: the entry burn on three engines, the long fall with grid fins and cold-gas thrusters, and the landing burn on one engine, which can't hover (its lowest throttle still lifts 1.7-1.95 times the booster's weight).
How it got here (devlog steps 6-12): PPO (agents/ppo_rocket.py), rewarded only at the end (landed, how softly, or
how badly it crashed), with a backward ladder: starts along a hand-written controller's landings, moved back towards
the real start as it learns. Try 25 landed 100% but swung up to 30 degrees across the airflow, which would snap a real
booster; the simulator gained a bending limit (air load times the angle off the airflow, 800 kPa.deg, our estimate),
Try 25 dropped to 0%, and this one (Try 29, run rocket-ppo29, update 1400) relearned from Try 25 under it.
| measured on 4,000 flights from 70 km never used to choose it (seed 5000) | |
|---|---|
| landed | 98.0% |
| touchdown speed | 1.41 m/s (limit 3) |
| miss from the deck's centre | 5.2 m |
| leg wear (share of the crush cores used) | 14% |
| crashes | hard touchdowns (26 m/s), no breakups |
In thick air it holds within about 1.5-7 degrees of the airflow and never turns faster than 4 degrees a second (Try 25: up to 30 degrees and 50 degrees a second).
- Sees (27 numbers): drift from the deck, height above it, sideways and falling speed (also on a square-root scale, sharp near the deck), lean (sine, cosine), spin, fuel left, thrust, engine angle, engine lit, lights left, wind, deck heave, grid-fin angle, and on the scale of the whole descent: altitude, fall speed, side speed, downrange, Mach, peak air load so far, heat soaked, the engine start sequence.
- Does (4 numbers, each -1..1): the engine switch and throttle (above +0.5 lights it, below -0.5 shuts it down; while lit 0..1 is lowest to full throttle), engine angle, thrusters, grid fins. 20 times a second.
- Brain: 27 -> 128 -> 128 (tanh) -> 4 (
pi*weights), plus a value head (v*) used only in training;log_stdis the training-time exploration spread. Use the mean action. - Code at the tag
episode-18: https://github.com/backstab319/a-million-tries/tree/episode-18 (games/rocket.py,games/rocket_jax.py,agents/ppo_rocket.py,scripts/rocket_eval.py; worldentry).
From the YouTube channel A Million Tries: https://www.youtube.com/@amilliontries
- Downloads last month
- 29