build#
- NyxCameraSensor.build()[source]#
Finalize the sensor and lazily start the shared Nyx renderer.
Called by the Genesis sensor manager once per sensor after the scene has been built. Each call:
Resolves the optional rig attachment via
RigidSensorMixin.Verifies CUDA is available (Nyx is GPU-only).
Registers this camera in the shared metadata, assigns it a Nyx camera index, and captures its configuration as a definition dict.
If this is the final
NyxCameraSensorleft to build, collects lights / env maps / light fields from all sibling sensors, writes the scene-description JSON viaNyxSceneExporter, and constructs the sharedNyxPyRenderer.Pre-allocates this sensor’s slot in the shared image cache:
(B, H, W, 3)uint8CUDA tensor.
- Raises:
genesis.GenesisException – If CUDA is unavailable, or if sibling
NyxCameraSensorinstances disagree onrender_mode(the shared renderer can serve only one mode).