Repository navigation
cvcGL: nav_stats state-tree publisher (base + formation) — Track 3b-1 - #425
Merged
Merged
Conversation
Add inc/cvc/gl/nav_stats_publish.{h,cpp}: publish_nav_stats() bridges a base
cvc::nav::episode_nav_stats snapshot into the scene's cvc::state tree under
<prefix>.nav_stats.* via the scene's cvc::gl::state_publisher (value lane,
coalesced, off the render path), for realtime ImGui / the cvcGL UI DSL (SPEC 1,
CVC-DBG/cvcdbg docs/stats-statetree-and-training.md).
Layout: .meta.{alive,scene_id,checkpoint,seed,n_vehicles,tick,dt_s,complete},
.episode.{arrived,success,makespan_s,mean_ttg_s,penetration_pct,total_veh_contacts,
min_sep_m,mean_path_ratio,mean_turn_total_rad,total_fuel}, .coverage.{explored/
visible/believed_free/phantom_frac}, per-convoy .formation.<id>.{followers,
slot_error_mean_m,form_arrival} (form_arrival = all followers in-slot AND anchor
arrived — the base scorecard's form_mission convention, per convoy), and a compact
.veh.<i>.{...} live tier (strided by per_vehicle_every). Keyed by the SceneGraph
prefix so concurrent sims never collide. This is the BASE half; the cvc::dbg RF
sub-record and the belief/fog RASTER handles (data() lane) publish separately.
New cvcgl_nav_stats_publish test round-trips the layout through publish -> flush ->
value<T>() reads (meta/episode/coverage/per-veh/per-convoy + the coalesced last
value). libcvc CI builds cvcGL + runs it.
transfix
force-pushed
the
feat/nav-stats-publish
branch
from
September 26, 2026 02:59
0a66b01 to
95c352d
Compare
This was referenced Sep 26, 2026
transfix
added a commit
that referenced
this pull request
Sep 26, 2026
…b-3 PRs open (#427) Reflect actual state: Track 1 (a-d) MERGED (#421-#424), Track 2 MERGED (GRL-SNAM#96), Track 3a MERGED (cvcdbg#128/#129), Track 3b-1 MERGED (#425). Track 3b-2 (raster bridge, #426) + Track 3b-3 (RF publisher + demo3 wiring, cvcdbg#130) PRs open in CI. Document the 3b split (3b-1 base/formation, 3b-2 version-gated volume rasters, 3b-3 RF+demo) and the Track-4 reserved RF fields (composite_score / cvar_jam_loss / worst_jam_loss).
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.
Track 3b-1 — the base half of the state-tree bridge.
inc/cvc/gl/nav_stats_publish.{h,cpp}:publish_nav_stats()bridges a basecvc::nav::episode_nav_statssnapshot into the scene'scvc::statetree under<prefix>.nav_stats.*via the scene'scvc::gl::state_publisher(value lane, coalesced, off the render path) — so realtime ImGui / the cvcGL UI DSL read stats from state paths.Layout
.meta.{alive, scene_id, checkpoint, seed, n_vehicles, tick, dt_s, complete}.episode.{arrived, success, makespan_s, mean_ttg_s, penetration_pct, total_veh_contacts, min_sep_m, mean_path_ratio, mean_turn_total_rad, total_fuel}.coverage.{explored/visible/believed_free/phantom_frac}.formation.<id>.{followers, slot_error_mean_m, form_arrival}—form_arrival= all followers in-slot and anchor arrived (the base scorecard'sform_missionconvention, per convoy).veh.<i>.{...}live tier (strided byper_vehicle_every)Keyed by the
SceneGraphprefix, so concurrent sims under distinct prefixes never collide. This is the base half; an extension layer's application-specific sub-record (3b-3) and the belief/fog raster handles (data lane, 3b-2) publish separately.Test
New
cvcgl_nav_stats_publishround-trips the whole layout (publish → flush → value<T>()), incl. the per-convoy formation aggregate + the coalesced last-value. libcvc CI builds cvcGL and runs it. Verified locally:cvcgl_nav_stats_publish: OK.Next: 3b-2 (raster handles for realtime viz —
VolumeNodepath + asim_world::plane_versionaccessor) and 3b-3 (downstream extension-layer publisher + app wiring + a per-simnav_stats.simsregistry).