feat(sensing-server): body tracking platform with persistent IDs and zones#487
Open
schwarztim wants to merge 1 commit intoruvnet:mainfrom
Open
feat(sensing-server): body tracking platform with persistent IDs and zones#487schwarztim wants to merge 1 commit intoruvnet:mainfrom
schwarztim wants to merge 1 commit intoruvnet:mainfrom
Conversation
…zones
- New body_tracker module: BodyTracker with greedy nearest-neighbor
association + Kalman filtering for stable body IDs across ticks
- BodyCluster type defined inline (self-contained, no spatial_pipeline dep)
- Zone system: configurable axis-aligned 3D boxes with transition events
- AppStateInner: body_tracker field wired into main loop
- REST: GET /api/v1/tracking/bodies, GET/POST /api/v1/tracking/zones,
DELETE /api/v1/tracking/zones/{name}
- 5 unit tests: creation, ID persistence, timeout, zone containment, transitions
- ADR-094 (renumbered from fork ADR-081 to avoid collision with upstream
ADR-081 Adaptive CSI Mesh Firmware Kernel, accepted 2026-04-19)
schwarztim
pushed a commit
to schwarztim/RuView
that referenced
this pull request
Apr 28, 2026
…racking PR PR ruvnet#487 (body tracking platform) was filed first and claims ADR-094. Rename docs/adr/ADR-094-pull-based-ota.md → ADR-095-pull-based-ota.md and update all references in CHANGELOG.md, Cargo.toml, and main.rs comments.
This was referenced Apr 28, 2026
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.
Motivation
Upstream's accepted ADR-081 (Adaptive CSI Mesh Firmware Kernel) describes the firmware vtable and is unrelated to body tracking. However, fork-side work has built a complete body-tracking platform that fits naturally with the v2/ sensing crate — persistent IDs across ticks, zone semantics, and REST APIs that downstream integrations (Home Assistant, dashboards) expect.
This PR contributes that work to upstream under a renumbered ADR (ADR-094) to avoid collision.
Changes
v2/crates/wifi-densepose-sensing-server/src/body_tracker.rs—BodyTrackerwith persistent IDs, Kalman-filtered positions, zone tracking, and transition events. Self-contained:BodyClusterinput type defined inline (no dependency on fork-specificspatial_pipelinemodule).docs/adr/ADR-094-body-tracking-platform.md— design decision record (renumbered from fork ADR-081 to avoid collision with upstream ADR-081 Adaptive CSI Mesh Firmware Kernel, accepted 2026-04-19)v2/crates/wifi-densepose-sensing-server/src/main.rs— addbody_trackermodule, wireBodyTrackerintoAppStateInner, expose tracking REST endpointsCHANGELOG.md— entry under[Unreleased]API surface
GET /api/v1/tracking/bodies— list of tracked bodies with persistent IDs, current pose hint, current zone, last-seen timestampPOST /api/v1/tracking/zones— set zone definitions (rectangular regions)GET /api/v1/tracking/zones— current zone configurationDELETE /api/v1/tracking/zones/{name}— remove a named zoneDesign notes
Test results
cargo test --workspace --no-default-features: 1647 passed, 0 failed (5 unit tests inbody_trackermodule: creation, ID persistence, timeout decay, zone containment, zone transitions)python v1/data/proof/verify.py: VERDICT: FAIL — pre-existing onorigin/main(numpy/scipy version drift); not caused by this PR