synthesizers.synth_workers.items_scatter_synthesizer module#
Defines Items Scatter Synthesizer class which is responsible for items scatter placement.
- class synthesizers.synth_workers.items_scatter_synthesizer.ItemsScatterSynthesizer(class_name: str, scenario_owner: str, assets: Dict[str, Dict], number_of_assets_displayed_at_once: int, assets_pool_size: int, placement_synths: List[str], semantics: str)#
Bases:
BaseSynthesizer
Defines Items Scatter Synthesizer class which is responsible for items scatter placement.
- _placement_prims#
List of placement prims of the corresponding Synthesizers, defined by <placement_synths> in constructor.
- Type:
List[str]
- _scattered_prims#
List of prims of the assets added to the scene from the pool.
- Type:
List[str]
- placement_synths#
Target Synthesizers. The assets are placed on their prims.
- Type:
List[str]
- semantics#
Semantic class for the Synthesizer’s primitives.
- Type:
str
- number_of_assets_displayed_at_once#
Number of assets displayed at once. The corresponding number of assets are sampled.
- Type:
int
- assets_pool_size#
Number of assets in the pool.
- Type:
int
- __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, assets: Dict[str, Dict], number_of_assets_displayed_at_once: int, assets_pool_size: int, placement_synths: List[str], semantics: str) None #
- Parameters:
class_name (str) – Synthesizer name given by user in the config.
scenario_owner (str) – Name of owning Scenario.
assets (Dict[str, Dict]) – Assets pool. From the objects pool, <number_of_assets_displayed_at_once> objects are chosen randomly.
number_of_assets_displayed_at_once (int) – Number of assets displayed at once. The corresponding number of assets are sampled.
assets_pool_size (int) – Number of assets in the pool.
placement_synths (List[str]) – Target Synthesizer’s names. The assets are placed on their prims.
semantics (str) – Semantic class for the Synthesizer’s primitives.
- 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):