synthesizers.synth_workers.single_item_synthesizer module#
Defines Single Item Synthesizer class which is responsible for single item synthesis.
- class synthesizers.synth_workers.single_item_synthesizer.SingleItemSynthesizer(class_name: str, scenario_owner: str, usd_path: str, position: List[float], semantics: str)#
Bases:
BaseSynthesizer
Defines Single Item Synthesizer class which is responsible for single item synthesis.
- position#
Asset placement position in the scene. Given by X, Y, Z coordinates.
- Type:
List[float]
- usd_path#
Nucleus path of the USD asset to be added.
- Type:
str
- semantics#
Semantic class for the asset.
- Type:
str
- _stage_prim_path#
Path of the loaded asset in the stage.
- Type:
str
- __call__(camera_setup: List[str]) None #
Called by Replicator to make changes in the scene.
- 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, usd_path: str, position: List[float], semantics: str) None #
- Parameters:
class_name (str) – Synthesizer name given by user in the config.
scenario_owner (str) – Name of owning Scenario.
usd_path (str) – Nucleus path of the USD asset to be added.
position (List[float]) – Asset placement position - X, Y, Z.
semantics (str) – Semantic class for the asset.
- 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):