Skip to content

Commit e44ef97

Browse files
committed
docs(plans): E6, Box2D's three pages, done; what they found recorded with DR-112 and DR-114's consequences
ENV_DOCS_PLAN's E6 row is marked done (2026-11-24) and DESIGN_REVIEW's consequences gain E6's entry, after E5's: Lunar Lander (426df2a), Bipedal Walker with its hardcore section (602148e) and Car Racing (cdf843c). - Every figure equals Gymnasium's own frame of the same moment after replaying the trace's actions in Gymnasium with one render a step (0 differing pixels), and each replay's return equals the trace's bit for bit; Car Racing's 96x96 observation too. - A render changes Box2D's envs (Lunar Lander's exhaust ages, Bipedal Walker's lidar sweep moves on), so the recorders take the figure from RecordVideo.RecordedFrames rather than rendering again. - The legs' and feet's contact flags read 0 while on the ground (one boolean, set by BeginContact and cleared by any EndContact, over a ground of separate edges): Bipedal Walker's leg 2 after 209 of the 923 steps its foot touches the ground, counted with pybox2d's contact lists. Both pages warn. - Gymnasium's walking gait never reads the lidar, and seed 0 is one of its 4 full courses in 100; the example's README said otherwise and is corrected. The hardcore section plays the TQC expert's own episode, with a figure of the three obstacles told apart by their sizes. - Gymnasium's CarRacing docstring lists 1.0.0's change under v2, though it registered CarRacing-v3; the page follows the registry's history. - The readout's "-0" (toFixed keeps a small negative value's sign) is shown as 0. - A float32 action makes Gymnasium's reward an np.float32; the replay checker sums float(reward). Checks: the full headless unit gate, 4,271 passed, 25 skipped, 0 failed (27 m 48 s), the 25 new tests being the three pages' samples; docfx 20 warnings (the baseline), 0 errors.
1 parent cdf843c commit e44ef97

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

‎docs/plans/DESIGN_REVIEW.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,3 +903,29 @@ Effects of approved designs that only showed up in code. None changes a design;
903903
`BlackjackObservation` shares: its samples read the numbers out before the result goes. Blackjack's samples file
904904
enables nullable annotations below the quick start's four lines, for `object?[]`.
905905
- Gymnasium's Cliff Walking docstring names the info key `p`; the env sends `prob`, as the page says.
906+
- **DR-112 and DR-114, Box2D's pages** (E6, 2026-11-24). Bipedal Walker (with its hardcore section), Car Racing and
907+
Lunar Lander (with its continuous section) follow the template, and their four examples gained `--record`. Every
908+
figure equals Gymnasium's own frame after replaying the trace's actions in Gymnasium, one render a step (0 differing
909+
pixels, and the replay's return equals the trace's bit for bit). What the three pages found:
910+
- A render changes Box2D's envs: Lunar Lander's ages the exhaust particles (and destroys spent ones), Bipedal Walker's
911+
moves its lidar sweep on. A figure rendered a second time changes that frame and every later one, so the recorders
912+
take the figure from `RecordVideo.RecordedFrames`, the frame the video already holds.
913+
- The legs' (Lunar Lander) and feet's (Bipedal Walker) contact flags are one boolean each, set by `BeginContact` and
914+
cleared by any `EndContact`, over a ground of separate edges: a leg crossing a joint clears its flag while it
915+
stands. Replayed with pybox2d's contact lists, Bipedal Walker's leg 2 reads 0 after 209 of the 923 steps its foot
916+
touches the ground. Both pages warn, and their charts call the strips flags.
917+
- Gymnasium's walking gait never reads the lidar, and seed 0, the showreel's, is one of its few full courses: over
918+
seeds 0-99 it reaches the end 4 times and falls 91 times (mean 48.8), and on the hardcore course it gets no further
919+
than 33 units. The example's README said the gait timed its steps by the lidar; corrected.
920+
- Bipedal Walker's hardcore section plays the TQC expert's episode with its own figure, a frame with a staircase, a
921+
stump and a pit, which the figure's script tells apart by their sizes (the env keeps no kinds). The expert hops: in
922+
486 of its 968 steps neither foot is on the ground.
923+
- Gymnasium's CarRacing docstring lists the change of 1.0.0, finishing the lap as a termination, under v2; that
924+
change registered CarRacing-v3. The page's version history follows the registry's history instead (v1 February
925+
2022, v2 July 2022, v3 Gymnasium 1.0.0).
926+
- Car Racing's page shows the observation beside the labelled frame: the 96x96 picture at five times its size, in
927+
`.gn-figure-art`'s 480 px.
928+
- The anatomy readout showed "−0°" for a level hull: `toFixed` keeps a small negative value's sign. `formatReadout`
929+
drops it when every digit is a zero.
930+
- A float32 action makes Gymnasium's reward an `np.float32` (NEP 50), and a Python float plus it stays float32; the
931+
replay checker sums `float(reward)`, as Gym.NET's double rewards do.

‎docs/plans/ENV_DOCS_PLAN.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pushed when the maintainer says so.
210210
| E3 | CartPole's page whole: the banner, the infobox and its CSS, the full-width quick start, the figure and the math, the code tabs and the anatomy chart's script in the `gymnet` template, every section, its samples; `examples/CartPole`'s `--record` and its media; every example's `Program.cs` renamed `<Env>Program.cs`; the facts test, the samples' test file. Reviewed by the maintainer before the rest. **Done 2026-11-23, awaiting that review** | DR-103, DR-105, DR-111…DR-116 |
211211
| E4 | Classic control: Acrobot, Mountain Car, Mountain Car Continuous (with its new example, DR-124), Pendulum; their examples' `--record`. **Done 2026-11-23**: each figure equals Gymnasium's own frame of the same moment (0 differing pixels); the facts test reads negative thresholds and ignores `<wbr>`; square frames take `.gn-figure-narrow`; MountainCarContinuous's left-first rule averages 92.03 over seeds 0-99 (above the registry's 90) | DR-103…DR-105, DR-111…DR-116, DR-124 |
212212
| E5 | Toy text: Blackjack, Cliff Walking, Frozen Lake (with the 8x8 section's loop), Taxi; their examples' `--record`, and the grid figure (the env's frame, labelled: DR-125); Blackjack's hand found by a seed search (DR-128); the grid worlds' anatomy drawn on the board, a new band in `main.js` (DR-131). **Done 2026-11-23**: every figure and board equals Gymnasium's own frame of the same moment (0 differing pixels); the board band follows the presented video frame (`requestVideoFrameCallback`); the frames keep their own scale (Frozen Lake 2x `.gn-figure-pixel`, Cliff Walking 768 px `.gn-figure-wide` with `.gn-anatomy-wide`, Taxi 536 px `.gn-figure-medium`, Blackjack 1.25x `.gn-figure-art`); the facts test reads "no step limit", per-id thresholds, fractions and a section's own trace; Taxi-v4's threshold of 8 is above the best policy's 7.93; Blackjack's hand is 8 frames, not DR-128's 9 | DR-125, DR-128, DR-131 |
213-
| E6 | Box2D: Bipedal Walker (with Hardcore), Car Racing, Lunar Lander (with Continuous); their examples' `--record` with the bodies' pixels | |
213+
| E6 | Box2D: Bipedal Walker (with Hardcore), Car Racing, Lunar Lander (with Continuous); their examples' `--record` with the bodies' pixels. **Done 2026-11-24**: every figure equals Gymnasium's own frame of the same moment after replaying the trace (0 differing pixels, the returns equal bit for bit), Car Racing's 96x96 observation too; the figures are the recorder's last frame (`RecordVideo.RecordedFrames`), since Lunar Lander's render ages its exhaust and Bipedal Walker's moves its lidar sweep; the legs' and feet's contact flags read 0 on the ground (one boolean over a chain of edges), and the pages warn; Bipedal Walker's hardcore section plays its own episode with a figure of its three obstacles; the readout shows 0 where `toFixed` gave −0 | DR-112…DR-116 |
214214
| E7 | MuJoCo: the 11 pages with their v4 sections, cameras and depth rendering; their examples' `--record` with the joints projected (HalfCheetah's mockup is the model) | |
215215
| E8 | The Performance rows not measured yet (MountainCarContinuous-v0's page says so and cites MountainCar-v0's); the external links checked; the headless pass over every page and button | |
216216

0 commit comments

Comments
 (0)