unilab.base.scene.SceneCfg¶
- class unilab.base.scene.SceneCfg[source]¶
Bases:
SceneCfgTask-owned scene declaration with UniLab entity materialization.
Physics scene fields and all backend-facing behavior are implemented by UniSim. UniLab only converts Hydra/OmegaConf entity mappings into the manager facade’s
EntityCfgrecords on the cold configuration path.- Parameters:
model_file (
str)terrain (
TerrainSceneCfg|None)fixed_variant_plan (
FixedVariantPlan|None)entity_variant (
EntityVariantBinding|None)
Methods
__init__([model_file, fragment_files, ...])Convert task/Hydra physical records without importing a physics SDK.
validate_composition([num_envs])Attributes
Optional named keyframe used as the Manager-Based default state.
Physical sources, distinct from the task-owned logical entity selectors.
One entity-bound catalog; cannot coexist with a whole-model variant plan.
Immutable fixed model identities realized by a backend at construction.
Logical entity partitions materialized by the base-owned manager facade.
-
terrain:
TerrainSceneCfg|None= None¶
-
entities:
dict[str,object]¶ Logical entity partitions materialized by the base-owned manager facade.
-
entity_assets:
tuple[SceneEntitySpec,...] = ()¶ Physical sources, distinct from the task-owned logical entity selectors.
-
entity_variant:
EntityVariantBinding|None= None¶ One entity-bound catalog; cannot coexist with a whole-model variant plan.
- materialize_entities()[source]¶
Convert task/Hydra physical records without importing a physics SDK.
- Return type:
- __init__(model_file='', fragment_files=<factory>, terrain=None, entities=<factory>, visual_model_file=None, default_keyframe_name=None, fixed_variant_plan=None, entity_assets=(), entity_variant=None, primary_entity=None)¶
- Parameters:
model_file (
str)terrain (
TerrainSceneCfg|None)fixed_variant_plan (
FixedVariantPlan|None)entity_variant (
EntityVariantBinding|None)
-
default_keyframe_name:
str|None= None¶ Optional named keyframe used as the Manager-Based default state.