Skip to content

slam-rs, robocap-live: profiles apply through the Rust schema; fast turns on KLT exit - #357

Merged
pablo-rerun merged 2 commits into
robocap-live/stack/11-gpu-frontendfrom
robocap-live/stack/12-profiles
Oct 5, 2026
Merged

pablo-rerun merged 2 commits into
robocap-live/stack/11-gpu-frontendfrom
robocap-live/stack/12-profiles

Conversation

@pablo-rerun

@pablo-rerun pablo-rerun commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Part 6 of 9 in the RK3588 re-cut (replaces #349 and #350). Base: #356.

This stack re-cuts the RK3588 speed and review work by responsibility. It replaces draft PRs #349 (hands catalog layer and GPU default) and #350 (slam-rs about 2x faster on the RK3588). Its top is exactly 929507d2, the tree of the final gates (~/slam-rs-rk3588/research/final-review/gates-final-2.md, Round 2c and 2d; gate 8 fails, see #356).

What and why

Every entry point now applies profiles through the Rust configuration schema (VioConfig::with_overlay). The recorder's hand-kept fast-profile helper and the Python allowlist go away; they have no remaining callers. The recorder reads the checked-in fast overlay, so it also gets the deliberate 0.05-pixel KLT exit setting.

Behaviour

  • Commit 1 changes no output: all 12 resolved configuration hashes match slam-rs: fused GPU KLT, frame-owned input, lookahead and radtan8 one-wait stereo #356.
  • Commit 2 changes the fast profile on purpose: fast.json turns on KLT exit for every caller that selects fast, and all 12 hashes then match the tested final tree. Every exit ATE passes the existing 1.10 accuracy ratio against fixed-count fast, with unchanged supported counts. Stationary fast rig: 82 supported poses, at most 2.450456 micrometres of movement (bound: below 2 cm with more than 60 poses). MGO07 recorder/direct, 300 frames: 150 reports, 146 supported comparisons, maximum pose-component difference zero (bound: within 1e-5 with more than 20 supported poses).
  • Fixed-count CPU fast and explicit-exit trajectories still match their five r15-gpuc-no-c4 references byte for byte (12,580 framesets each), a separate claim from the changed shipped profile.

How to read it

  1. 7c03009c (8 files, +166/-143; about 12 minutes): VioConfig::with_overlay and schema tests, recorder constructor and caller, live profile module (it keeps its CPU lane), then Python text validation. The old fast-profile bytes stay. Also fixes two stale camera-order doc comments left after slam-rs, robocap-live: RoboCap feeds the front stereo pair first; rig facts live in Rust #354.
  2. 97cc77e9 (5 files, +16/-12; about 5 minutes): fast.json and its direct assertions, recorder stationary test, README. Exit was already opt-in since slam-rs: faster CPU detection, tracking and estimation on a bounded worker pool #355 and slam-rs: fused GPU KLT, frame-owned input, lookahead and radtan8 one-wait stereo #356; this enables it for fast.

Total: 11 files, +181/-154. No dependency or lock change.

Evidence

Gate: slam-rs-dev gate on pablo-dl-server @ 97cc77e

  • Package gate: 320 unit and 15 integration tests, native workspace and recorder live-slam; named skips: missing torchcodec, Metal outside macOS. Native-only robocap-live: 212 tests and all-target Clippy pass.
  • Strict core/CLI/binding and GPU Clippy pass; the unchanged recorder lint stays excluded until slam-rs, robocap-live: native catalog replay; area, calibration and timing rules in core #358. GPU build and all 376 RTX 3060 regression tests pass; all ten RTX lag/exit trajectories match the no-c4 references byte for byte (12,580 framesets per mode).
  • Hash files: before and overlay are identical; final matches ~/slam-rs-rk3588/research/final-review-2c/profile-hashes.txt. The earlier CB14 prefix with no supported startup is not accuracy evidence. No Cap run.
  • Logs: ~/slam-rs-rk3588/logs/recut/pr12-{gate,live,clippy,host,accuracy,recorder,overlay,gpu-build,rtx,rtx-replays}.log; data: ~/slam-rs-rk3588/research/recut/pr12-accuracy.json, ~/slam-rs-rk3588/research/recut/pr12-hashes-{before,overlay,final}.txt, ~/slam-rs-rk3588/runs/recut/pr12-rtx/{lag,exit}.

Not in this PR

  • R8: CPU and GPU builds share one _core.so import slot. One-wait for kb4 calibrations.

Use the same checked overlay in the recorder and live driver, and validate Python text with Rust. Keep the existing fast profile and its resolved bytes for this preparation commit.
Stop each KLT level below a 0.05 pixel update on either lane. The shared overlay now makes this deliberate behavior change apply to the recorder too; exercise its stationary accuracy with the shipped profile.
@pablo-rerun
pablo-rerun force-pushed the robocap-live/stack/12-profiles branch from 5f5e0c0 to 494305f Compare October 5, 2026 18:18
@pablo-rerun
pablo-rerun marked this pull request as ready for review October 5, 2026 18:19
@pablo-rerun
pablo-rerun merged commit 022d398 into main Oct 5, 2026
4 checks passed
@pablo-rerun
pablo-rerun deleted the robocap-live/stack/12-profiles branch October 5, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants