Repository navigation
ariadne coph: demo 2a ready to show (docked panels, §8 labels, walkthrough), and a CoPH poster on Pages - #205
Merged
Merged
Conversation
…scripted walkthrough)
- The floors' textures were mirrored north-south: Lab.set_texture puts an image's row 0 at
the quad's north edge, and Floor's row 0 is the south. Corridors, the heat map, stage
rectangles and sensor rings now sit under the cars (an agent on the north corridor had its
ring drawn on the south one).
- Panels docked so the floors stay clear: CoPH and Learning down the right, Headline above,
Agents below; the camera fits the floors to what is left, projecting the corners. The
window opens at 1600x900 unless --width/--height say otherwise. A nameplate north of each
floor names its arm. All four Agents rows fit, with short arm names.
- Headline labels per the roadmap's §8: the reference's established results with its seed
counts (green); what it has not established (amber): replay, receiver field fitting, and
adaptive-rate sharing, which neither demo exercises (fixed 0.96 s exports); and that the
validation gate cannot reject at its 0.003 slack, with the reference's count (5,212 of
5,212 kept over its 40 episodes) and this run's up to the play head.
- --tour plays a scripted walkthrough of the default arms, its times read from the episodes,
captioned in the Headline, with Back/Next/Restart; Playing or a slider drag hands the run
back. `coph walkthrough` runs crossing then hazard ('severe'). --shots writes a PNG per
step; --record writes an H.264 mp4 through ffmpeg (stdin as pipe:0, frames trimmed to even
sizes, for minimal builds). A tour computes missing episodes first.
- tests/test_coph_walkthrough.py: the gate count, the camera fit (pinhole check at three
window sizes), the tour's steps and playback, the recorder; test_ariadne_coph.py: the
tour's refusals and the walkthrough's two runs and concat.
…at the code does - `walkthrough --record` keeps one Recorder in its own process; each tour sends its frames over a multiprocessing.connection pipe (PipeRecorder, authkey in the environment), so ffmpeg only encodes. cvcpkg's ffmpeg 7.1.2 has no concat demuxer, concat or pad filter, or rawvideo encoder, so it cannot join two mp4s. A tour that exits before it connects ends the wait. - Recorder: frames go in on pipe:0 (that build rejects "-"), trimmed to even sizes; a clear error when ffmpeg stops reading. - Hazard captions: the scout's packets reach the carrier's router (terrain_anchors, priced at its own risk weight); its fitted r covers only its kept stages, so the hazard is not in it at 26 s. Step 2 shows the scout's own r instead, which does hold the hazard.
…hrough each other - A tour step's camera move and hold used to stop the play head, which left 83 s of the 175.5 s walkthrough as frozen frames that read as hangs. The run now plays on at the step's idle speed (0.25x for the intro, 0.5x elsewhere). At the episode's end, where nothing can move, the camera drifts slowly. Step ends were retimed so that each captioned event still plays on screen. Next never seeks back. - CoPH-Stagewise models no contact between agents, so in crossing the two pass through each other on the south corridor (CoPH arm 63.5 s, comms off 104.8 s). passing() finds the closest approach in each arm. The tour shows the CoPH arm's pass close up with a caption that says why, and names the other in the arrivals caption. The status line says so whenever two driving agents overlap, for a presenter driving live. - Tests: passing and overlapping on a synthetic overlap; the tour plays with at most one unchanged frame a step.
pages/site/coph/ (copied to the site's coph/ by assemble.py, as site/ is):
- The walkthrough video: `coph walkthrough --offscreen --width 1920 --height 1080 --record`
on libcvc master (4.0.6+), 2:36, re-encoded at CRF 24 for the web (11.9 MB, H.264, faststart).
Chapter buttons for crossing and hazard (coph.js).
- The method in brief, and the claims as the roadmap's §8 labels them:
- green, what the reference establishes, with its seed counts (crossing 27.1 m, 16/16 goals,
2 seeds x 4 arms; hazard 4.6 against 68.1, 1 seed x 4 scenes x 8 arms), each with a still;
- amber, what it does not establish: replay, receiver field fitting, adaptive-rate sharing
(not exercised), the gate that cannot reject, and agents with no contact between them;
- how GRL-SNAM carries it, and what is coming: the live demo in the page, once torch is no
longer needed in the browser (the C++ port's bindings), and demo 2b (exploratory).
- Credits: CoPH-Sense's CoPH-Stagewise by SetasAditya, MIT.
The landing page links it with a card. pages/smoke.mjs now also checks that the poster's links,
images and video resolve, and serves .mp4 as video/mp4. Everything the poster loads is on the
site's own origin, under the smoke's strict CSP (no inline style or script).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demo 2a (
python -m grl_snam.ariadne coph, roadmap §3.2) made ready to show live or from a recording: a real window on libcvc master, the claims labelled per the roadmap's §8, and a scripted walkthrough with a recorder.Fixed in the window
Lab.set_textureputs an image's row 0 at the quad's north edge, andFloor's row 0 is the south. The corridors, the heat map, the stage rectangles and the sensor rings were all flipped about y = 3.75 m. An agent on the north corridor had its ring drawn on the south one.texture()now flips the rows at upload.pos: [10000, ...], as libcvc's nav_city documents dock theirs, with sizes in percent). The camera fits the floors to the room that is left by projecting the box corners (fit,project).--width/--heightsay otherwise.The §8 labels (Headline)
staggered_demoexports every 0.96 s. The old text said it ran.pi(from replay) and the received bytes the same way.Walkthrough
--tourplays the default arms as a sequence of captioned steps: camera moves, the play head at a set speed, and the heat map.coph walkthrough --from DIRruns crossing, then hazard ('severe').--shots DIRwrites a PNG at the end of each step.--record PATHwrites an H.264 mp4 through ffmpeg. Frames go in onpipe:0and are trimmed to even sizes.walkthrough --record, the parent process holds the one encoder, and each tour sends its frames over amultiprocessing.connectionpipe (PipeRecorder,relay). That way ffmpeg only has to encode: cvcpkg's ffmpeg 7.1.2 has no concat demuxer, concat or pad filter, or rawvideo encoder, so it cannot join two mp4s.staggered_demorecords "no inter-agent contact dynamics". In crossing they pass through each other at 63.5 s (CoPH) and 104.8 s (comms off). The tour shows the first pass close up with a caption saying why, and the status line says so whenever two driving agents overlap. Positions stay the reference's.terrain_anchors), priced at the carrier's own risk weight. Its fittedrcovers only its kept stages, so the hazard isn't in it at 26 s.The CoPH poster (
pages/site/coph/)pages/smoke.mjschecks that the poster's links, images and video resolve. Everything the poster loads is on the site's own origin, with no inline style or script (the smoke's CSP).pages/scripts, so the poster appears on its first redeploy after this merges.pages/README.md,pages/site/index.html,pages/smoke.mjsandgrl_snam/ariadne/README.md. Whichever merges second needs a small merge.Checked
coph walkthroughran in real windows (all 15 steps, both demos exit 0) and offscreen, with step shots checked against the episodes.tests/test_coph_walkthrough.py(11, no pycvc_gl needed) andtests/test_ariadne_coph.py(6) pass locally, as do black and ruff.