Sensors Addon#401
Conversation
|
We have this |
Awesome! Never saw that since it wasn't exposed as an export. I just converted the internal helper over to that |
the sensor caching
mode so it loads properly
calls go through sensormanager and it maintains a cache list of sensors which returns as needed
|
New signatures for sensors: Purely a caching + alignment on embodied sensing Force a fresh piece of data Batch capture Lenient batch capture |
|
That api looks good to me. |
| super(options); | ||
| } | ||
|
|
||
| update(context: SensorContext): number[][] { |
There was a problem hiding this comment.
Any reason to use number[][]?
This involves a bunch of allocations vs a flat array.
Also, I'd recommend keeping as much info as possible including the format and extrinsics and intrinsics.
Refactor all third person sensing into a new addon called
sensorsSensorsManagermanages all sensor lifecycles to enforce time alignment, dependencies, and cachingSensors<T>allow easy extension of new sensorsNew Sensors
ScreenshotSensorcaptures screenshots of the raw worldScreenshotXRcaptures. screenshot of the world + XRScreenshotSOMadds annotations over XR objects for referencing by AIVisibilitySensortraces what objects are in the user's viewportSemanticMapSensorformats visible sensors into plaintext descriptiosnDepthSensordepth mapsTargetingSensorstracks what objects the hand is pointing at or colliding withProprioceptionSensorstracks user transformsGeminiManager Changes
geminiManagerand made it run from sensors instead.New sample showing data at
sample/sensors_debug