synthesizers.synth_workers.scene_synthesizer module#
Defines Scene Synthesizer class which is responsible for scene loading.
- class synthesizers.synth_workers.scene_synthesizer.SceneSynthesizer(class_name: str, scenario_owner: str, scene_path: str)#
Bases:
BaseSynthesizer
Defines Scene Synthesizer class which is responsible for scene loading.
- _scene_node#
Scene stage node.
- Type:
og.Node, but can’t be used as annotation
- scene_path#
Path of a USD scene to be loaded inside OV Nucleus.
- Type:
str
- __call__(camera_setup: List[str]) None #
With this magic function, a command is executed.
- Parameters:
camera_setup (List[str]) – List of camera primitive paths in for the camera setup. It can contain more than one camera, e.g. stereo camera or more complicated camera rigs.
- __init__(class_name: str, scenario_owner: str, scene_path: str) None #
- Parameters:
class_name (str) – Synthesizer name given by user in the config.
scenario_owner (str) – Name of owning Scenario.
scene_path (str) – Path of a USD scene to be loaded inside OV Nucleus.
- _load_from_nucleus() Any #
Loads the scene from OV Nucleus server.
- Returns:
Reference to the scene node.
- Return type:
og.Node, but can’t be used as annotation
- get_prims() List[str] #
Returns paths in stage to Synthesizer’s created prims.
- Returns:
List of stage prim paths.
- Return type:
List[str]
- register_synthesizers_prims(synthesizer_workers: Dict[str, BaseSynthesizer]) None #
Allows an access to other Synthesizer’s prims if needed.
- Parameters:
synthesizer_workers (Dict[str, BaseSynthesizer]) – Dict of all Synthesizers.
Returns (None):