Repository navigation
Conversation
…an extras v2 An engine-free package (no UnityEngine references, double precision, no clock, randomness or static state), written test-first with 600 EditMode tests. It holds the semantic map's logic so the scanner, and later other apps, share one copy: - TagVocabulary: one vocabulary. Raw detector text (case, articles, plurals, separators, synonyms) becomes a canonical tag and one of Meta's 16 labels. "a couch", "tables", "TV screen", "Sofa Bed" and "door frame" find their label; a class Meta has no label for, such as a chair, is OTHER but is still a tag, so tracking can tell a cup from a chair. - TrackTable: matches detections across captures by tag and distance, nearest first, two detections of one capture never one object. Position and normal are smoothed, confidence is a noisy-OR, and a track that is not seen for a while is lost (Found, Updated, Lost, Revived, Retired events), so a later sweep of the room does not pin everything twice. - Extras v2: a model, a reader that takes both v1 (the scanner's golden file) and v2, a writer with stable key order, a merge by object id, and a hand-written JSON schema. Where it differs from the web Scan contract is listed in Documentation~/CONTRACT.md. Nothing in the scanner uses it yet; the next commit does. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…; use the new vocabulary and tracker Assemblies and seams - CompanionScan is now CompanionScan.Core and references no Oculus.* or Meta.* assembly (CoreAssemblyTests checks the references and the asmdef). The Meta-bound classes moved to CompanionScan.Quest: MetaSceneCollector, XRControllerInput, ControllerMenuBuilder and the Horizon Store check. Scripts keep their GUIDs, so scenes are untouched. The pipeline's and the exporter's scene field keeps its serialized name (metaSceneCollector), is now typed MonoBehaviour and is used through ISceneSource. - Seams in Core, one per capability a platform provides: ICameraSource (a frame with the pose, intrinsics and time of capture; a plain ICameraProvider is adapted), ISceneSource, IRaycastSource (ViewportRaycaster.AddSource asks them first) and IInputSource (ControllerInput routes the buttons to the menu and panels; XRControllerInput is the OVRInput backend). - CompanionScan.Replay plays a recording back: camera frames with their poses and intrinsics, a recorded room for raycasts and a Space Setup snapshot, plus a synthetic box room that needs no image files. 20 PlayMode tests run the whole pipeline from it against a CV server on a loopback port, with no headset, and check where the pins land against geometry worked out by hand. Routing of the controller buttons is now tested too. Using the Companion.Spatial package - SemanticLabelMapper is the tag vocabulary: 16 of the 26 default-prompt classes no longer give OTHER by accident, and INVISIBLE_WALL_FACE and GLOBAL_MESH can be produced. - The pipeline's inline tracker is the TrackTable. An object that is not seen for a while is lost, not forgotten, so a second sweep of the room does not pin it again. Fixes to what the characterization tests had pinned as doubtful (those tests are changed on purpose and renamed) - Export merge: a pin of the same object (Space Setup anchor, or capture session and track) and a snapshot with the same id replace their earlier entries, so saving again does not list everything twice; the new time, bounds and scene are kept; pins are never null; a glTF that cannot be read is ignored with a warning instead of failing every later export. - Floor plan: ear-clipping triangulation, so the mesh faces up (it faced down) and a concave boundary is covered exactly; pins on one line or on fewer than three places give no polygon. - Intrinsics: the identity matrix and infinite focal lengths are no intrinsics, and the desktop provider and the no-provider fallback return the zero matrix. A null frame raycast is no hit. - The snapshot frustum comes from the capture's pose and intrinsics, and the store says when it drops a snapshot. A normalized box whose far corner is a hair past 1 stays normalized. - Removed ObjectMapper and MappedObjectDatabase: no scene, prefab or caller. Checked: 1046 EditMode tests (445 of the scanner's, 600 of the package's) and 94 PlayMode tests (69 pass, 24 skip for lack of a server or simulator, 1 fails in batch mode because WaitForEndOfFrame does not run, as before). The Quest debug APK builds from this tree with the same package name, target API 34 and permissions. Nothing was run on a headset. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- docs/quest-capture-gltf.md: the Core, Quest and Replay assemblies, the four seams and the replay backend; the export merge, the floor mesh and the tag vocabulary. - docs/device-testing.md (new): which devices can run the scanner today, how to install and check a Quest 3 build, what to bring back, and what each other target (Android tablet, iPhone and iPad, XREAL Aura, PICO 4 Pro) is missing. Nothing in it has been run on a device. - docs/plan.md, docs/scan-export-pipeline.md, docs/spatial-capture-architecture.md: moved classes, the tracker. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…evices Companion Scan has a page per device and pre-releases for Quest and for PICO and XREAL Aura. On an Aura puck its WebView has no WebXR, so the WebXR app there cannot capture; Chrome on the puck is the path to try. None of it has run on the other devices. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
Draft until a capture has been checked on a Quest: everything below is covered by tests and a build, none of it has run on a headset.
What changes
Three commits, in the order they build.
com.companion.spatial(new,Packages/): an engine-free package (noUnityEngine, no clock or randomness) with 600 EditMode tests. A tag vocabulary (raw detector text to a canonical tag and one of Meta's 16 labels), a track table (detections matched across captures, found/updated/lost/revived/retired) and the scan extras v2 reader, writer, merge and schema. How v2 differs from the web Scan contract is inDocumentation~/CONTRACT.md.CompanionScanis nowCompanionScan.Corewith noOculus.*orMeta.*reference, andCompanionScan.QuestholdsMetaSceneCollector,XRControllerInput,ControllerMenuBuilderand the Horizon Store check. Scripts keep their GUIDs, so scenes are untouched.ICameraSource(a frame with the pose, intrinsics and time of capture),ISceneSource,IRaycastSource(ViewportRaycaster.AddSource) andIInputSource(ControllerInputroutes the buttons,XRControllerInputis the OVRInput backend).CompanionScan.Replayplays a recording or a synthetic box room back. 20 PlayMode tests run the whole pipeline from it against a CV server on a loopback port, with no headset, and check pin positions against geometry worked out by hand.SemanticLabelMapperis the vocabulary, and the pipeline's inline tracker is the track table.docs/device-testing.md.Behaviour that changes on purpose
The
Currently...characterization tests for these are changed and renamed.INVISIBLE_WALL_FACEandGLOBAL_MESHcan be produced.pinsis nevernull; a glTF that cannot be read is ignored with a warning instead of failing every later export.ObjectMapperandMappedObjectDatabaseare removed: no scene, prefab or caller.Still open
How it was checked
XrSceneScreenshotTests.QaXrScene_CapturesControllersAndAnchorswaits forWaitForEndOfFrame, which batch mode does not raise.QuestBuilder.Build(under 4 minutes with a warm cache): same package name, target API 34, the same 7 permissions and a v2 signature as before.Not checked
Packages/manifest.jsonis unchanged: the package is embedded. Unity adds its entry topackages-lock.jsonon first open.🤖 Generated with Claude Code