Repository navigation
ariadne: coph-cars, CoPH driving the cars template (T4, demo 2b, exploratory) - #193
Merged
Merged
Conversation
libcvc's NAV-COPH-ROADMAP.md §3.3: one grl_snam.coph learner per car of libcvc's cars template (pycvc_gl.cars), in the demos' profile. - Froude scaling with one CoPH frame for all cars; CoPH steps every 0.12 sqrt(s) s (two ticks at s = 1) and holds its force (D4, D6). - The held force is allocated every tick with grl_snam.coph.allocation; the learner observes the mean force the car took, and the rest is booked as the unallocated work (D5). - World adapter: obstacles from pycvc.nav_visible_obstacles within the scaled sensor radius; risk readings from the risk plane (pycvc.nav_material_build) of a seeded material layer, one patch across each car's line; a local goal 30 m along the line (D12). - CarLearner: stages follow the car along either axis (the demos' learner's rule), with the profile's own footprint routing. RawCarLearner sends raw readings, as the hazard demo's raw arm. - Panels: coeffs pi_risk, pi_barrier, damping, version, then the ledger; cost() draws V or r. The template's predicted paths (rollout) get the held force and teach the learners nothing. - --arms: off, coph and raw, headless over paired seeds on the template's script API, on a RoboRacer-sized flat square (random or convoy layout); summary.json and REPORT.md lead with the allocation residual and the ledger. Where the template does not fit the spec: a template controller sees no world grid (the window uses ray hits as obstacles), and the template's flat square is a Humvee's.
Three paired seeds, four RoboRacers at s = 1, random and convoy layouts: the two REPORT.md files and summaries the arms wrote, the template window's picture, and a README with the command lines, the environment and what the numbers show (allocation residual 0.22-0.27; the ledger does not close on a car, damping at its 0.15 floor in every car; the arms differ by under 1 % of risk cost).
This was referenced Nov 20, 2026
transfix
added a commit
that referenced
this pull request
Nov 20, 2026
…-deps (2.2.1) (#197) ci.yml and publish-cvcpkg.yml installed the dependency closure with transfix/libcvc-deps' cvcpkg-install action, which pip-installs the libcvc-deps tree it checks out: cvcpkg 2.2.1, frozen since the repo was archived on 2026-09-16. While libcvc 4.0.1 was half-published, CI here got pycvc 4.0.0 beside libcvc 4.0.1 and pycvc-gl 4.0.1 beside cvcgl 4.0.0 (#193). The published libcvc rows now pin their own release (transfix/libcvc#1377 plus a backfill of the 1,116 rows already on cvcpkg.org). But 2.2.1's resolver checks a candidate only against the pins of packages already picked, so a resolver simulation on the live catalog still mixes releases in two half-published states. cvcpkg 2.5.1 and later check both ways (cy-pca/cvcpkg#251) and resolve all twelve to one release. Both now use cy-pca/cvcpkg's copy of the same action at cvcpkg-v2.5.15, told to check out and pip-install cy-pca/cvcpkg at that tag. The checkout still lands in _libcvc-deps, so ruff's --exclude stands. publish-cvcpkg.yml's separate 'cvcpkg[publish]' installs are unchanged.
transfix
added a commit
to transfix/volrover
that referenced
this pull request
Nov 20, 2026
…ed libcvc-deps (#53) The Windows lane installed cvc-requirements.yaml with transfix/libcvc-deps' cvcpkg-install action, which pip-installs that repo's tree (cvcpkg 2.2.1, frozen since it was archived on 2026-09-16). It then force-reinstalled all of libcvc-deps from git so its bundled recipes could build GLEW from source. Now the action is cy-pca/cvcpkg's copy at cvcpkg-v2.5.15, told to check out and pip-install cy-pca/cvcpkg at that tag, as publish-cvcpkg.yml already does. The reinstall and the GLEW source fallback are gone: GLEW is in cvc-requirements.yaml and has a windows/x86_64 release/shared bundle on the catalog (2.2.0+cvc.2). In their place, one step fails at once if the action's install failed (it reports that as an empty path), and checks that GL/glew.h is in the prefix. 2.2.1's resolver also checks only one direction, so it can mix releases of a package family that is half-published (CVC-Lab/GRL-SNAM#193); 2.5.1 and later check both (cy-pca/cvcpkg#251). Co-authored-by: Joe Rivera <[email protected]>
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.
T4 of libcvc's
docs/roadmap/NAV-COPH-ROADMAP.md(demo 2b, §3.3):python -m grl_snam.ariadne coph-cars. Each car of libcvc's cars template (pycvc_gl.cars) carries onegrl_snam.cophlearner in the demos' profile. Exploratory (§8): this first report leads with the allocation residual and the ledger, and makes no navigation claim.First measurements (3 paired seeds, 4 RoboRacers at s = 1, 21 m flat square)
Full reports:
docs/coph-cars/(REPORT-random.md,REPORT-convoy.md, the summaries, and a README with the command lines and environment). These are local runs on Windows: cvcpkg Python 3.11 with torch 2.8 (CPU), and pycvc / pycvc_gl from a libcvc Release build at f3cecaf2.Allocation and ledger (per unit mass, CoPH's frame, summed over 12 cars):
u_used . dqe . dqeis mostly across the motion, its work is small.Outcomes:
rtracks the material plane: within 0.015 at 26 of 27 points in a one-car check. The exception was just after a stage advance.pi_riskat about 1.005.unsupported) unless one of its anchors lies in the receiver's kept stages. In the demos, refused geometry and fields still reach the maze learner's route store; a car's world has no surveyed network for one.The template's window: four RoboRacers on its (Humvee-sized) flat square, their predicted paths, the coefficient plots, and car 0's
Vin the Rasters panel.What lands
grl_snam/ariadne/coph_cars.py.CophCars. It is the template'scontroller(s, p)andcost().round(0.12 sqrt(s) / tick)ticks (2 at s = 1) and holdsuin between.ugoes throughgrl_snam.coph.allocation. The learner'sTransitioncarries the meanu_usedover the held step, andeis booked as unallocated work.pycvc.nav_visible_obstacleswithin the scaled sensor radius;pycvc.nav_material_build) of a seeded material layer, with one patch across each car's line;CarLearner: stages follow the car along either axis (the demos' learner's rule), with the profile's own footprint routing.RawCarLearner: the hazard demo's raw-readings export.coeffsarepi_risk,pi_barrier,dampingandversion, then the ledger columns, all logged.cost()draws the chosen car'sV(ctl.view0) orr(1).pycvc_gl.cars.rolloutcalls the controller on imagined states. Those calls get the helduallocated and teach the learners nothing.--arms [off coph raw]. Headless over paired seeds on the template's script API (Cars), random or--layout convoy. It writessummary.jsonandREPORT.md, and--logskeeps the template's logs.tests/test_ariadne_coph_cars.py(22 tests). Most run on a stand-inCarsStateand a kinematic bicycle, so they need torch but not pycvc_gl. They check:uand the per-tick allocation;u_used;potential_gridagainstmodel.potential;Four tests need the template: an episode and its log, the template's own
rollout, the arms' report, and the without-the-template message.The port's README section and its registry entry.
Where the spec met the template
CarsState.worldis the world's kind. Insidepycvc_gl.cars.run(the window), obstacles therefore come from the cars' ray hits. The arms run on the script API, where the controller holds theWorldand usesnav_visible_obstaclesas specified.flat_world(4.84), 194 m across, whatever the vehicle. The arms build a RoboRacer-sized one (D3).nav_material_build'sr~. A fog belief would hold the same values where seen, and CoPH reads only within its sensor radius.pycvc.SIM_TICK), not 0.05 s. At s = 1 that makes CoPH's 0.12 s exactly two ticks.Checks
tests/test_ariadne_coph_cars.py22/22 andtests/test_ariadne_ports.pypass. black 26.5.1 and ruff are clean.Merge is left to Joe.