Add Move controller stream overlay profile
This commit is contained in:
parent
e9f871cc6d
commit
429f51fbd8
7 changed files with 524 additions and 0 deletions
83
docs/move-controller-stream.md
Normal file
83
docs/move-controller-stream.md
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
# Move Controller Stream
|
||||
|
||||
## Objective
|
||||
|
||||
Ship the first Mimir program surface around one concrete show shape:
|
||||
Kiyo Pro is the RGB program view, PS3 Eyes track multiple PS Move spheres,
|
||||
Raven screen capture enters as a synchronized video source, and Scarlett ASIO
|
||||
provides the two hero mics plus Raven program-loopback timing evidence.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- Owner: `Mimir.Runtime` owns sample ingest, rolling buffers, and typed visual
|
||||
evidence. Fensalir owns overlay presentation and final program pixels.
|
||||
- Inputs: Kiyo Pro YUY2 video, both PS3 Eye Bayer8 feeds, Scarlett ASIO
|
||||
channels `asio-ch0..asio-ch3`, and Raven SRT screen capture on port `5200`.
|
||||
- Outputs: `kiyo-pro-rgb` is the base program view; PS Move controller histories
|
||||
lower as Feature evidence through `MimirMoveControllerTracker`; `raven-display`
|
||||
stays in the `raven-sync` clock domain; ASIO labels identify shotgun,
|
||||
cardioid, and Raven loopback lanes.
|
||||
- Derived state: Move 2D histories are observations, not 6DoF pose. Raven
|
||||
display timing is derived from Scarlett audio evidence, not SRT arrival time.
|
||||
- Forbidden writers: PS3 Eye blob tracks do not own camera calibration; Raven
|
||||
network timestamps do not own global sync; Kiyo Pro does not own high-rate
|
||||
motion truth.
|
||||
- Cut line: this profile is the first streamable overlay product, not the full
|
||||
online calibration solve.
|
||||
|
||||
## Runtime Profile
|
||||
|
||||
Use:
|
||||
|
||||
```powershell
|
||||
$env:MIMIR_RUNTIME_CONFIG = "E:\Projects\Mimir\config\mimir-runtime.move-stream.local.json"
|
||||
dotnet run --project .\src\Mimir.App\Mimir.App.csproj
|
||||
```
|
||||
|
||||
The profile declares:
|
||||
|
||||
- `kiyo-pro-rgb`: Kiyo Pro program view, 640x480 YUY2 at the current reliable
|
||||
25 fps class.
|
||||
- `ps3-eye-0`, `ps3-eye-1`: high-rate Move sphere visual witnesses.
|
||||
- `focusrite-asio`: one ASIO producer that emits:
|
||||
`asio-ch0` shotgun hero mic, `asio-ch1` cardioid hero mic,
|
||||
`asio-ch2` Raven program loopback L, and `asio-ch3` Raven program loopback R.
|
||||
- `raven-display`: Raven screen capture over SRT port `5200`.
|
||||
|
||||
Run the synthetic overlay smoke:
|
||||
|
||||
```powershell
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --move-controller-overlay-smoke
|
||||
```
|
||||
|
||||
Run the live ingest smoke once Raven is sending:
|
||||
|
||||
```powershell
|
||||
$env:MIMIR_RUNTIME_CONFIG = "E:\Projects\Mimir\config\mimir-runtime.move-stream.local.json"
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --seconds 5 --require-samples --sync-reference asio-ch2
|
||||
```
|
||||
|
||||
## Raven Sender
|
||||
|
||||
On Raven, start screen capture from the logged-in desktop session:
|
||||
|
||||
```powershell
|
||||
E:\Projects\Mimir\scripts\start-raven-screen-capture-sender.ps1 -TargetHost 192.168.1.66 -Port 5200
|
||||
```
|
||||
|
||||
Route Raven program audio into the Scarlett path that appears on
|
||||
`asio-ch2/asio-ch3`. That audio is the timing witness that earns the
|
||||
`raven-sync` correction for `raven-display`.
|
||||
|
||||
## Multiple Move Controllers
|
||||
|
||||
Do not collapse Move observations into a generic bright blob. Each controller
|
||||
has its own `controllerId` and expected RGB/time code. The PS3 Eyes can track
|
||||
the sphere as a high-rate brightness witness; Kiyo Pro can later confirm color
|
||||
identity; the commanded flash schedule ties the observed marker to the
|
||||
controller identity.
|
||||
|
||||
`MimirMoveControllerTracker` keeps a bounded history per controller and lowers
|
||||
those histories into the existing Feature evidence path. This is deliberately
|
||||
2D observation history. 6DoF pose waits for calibrated frustums and the global
|
||||
residual owner.
|
||||
Loading…
Reference in a new issue