habitat.datasets.rearrange.samplers.receptacle.ReceptacleTracker class

Methods

def allocate_one_placement(self, allocated_receptacle: Receptacle) -> bool
Record that a Receptacle has been allocated for one new object placement. If the Receptacle has a configured maximum number of remaining object placements, decrement that counter. If the Receptacle has no remaining allocations after this one, remove it from any existing ReceptacleSets to prevent it being sampled in the future.
def inc_count(self, recep_name: str) -> None
Increment allowed objects for a Receptacle. :param recep_name: The unique name of the Receptacle.
def init_scene_filters(self, mm: habitat_sim._ext.habitat_sim_bindings.MetadataMediator, scene_handle: str) -> None
Initialize the scene specific filter strings from metadata. Looks for a filter file defined for the scene, loads filtered strings and adds them to the exclude list of all ReceptacleSets.

Special methods

def __init__(self, max_objects_per_receptacle: typing.Dict[str, int], receptacle_sets: typing.Dict[str, ReceptacleSet])

Properties

recep_sets: typing.Dict[str, ReceptacleSet] get

Method documentation

def habitat.datasets.rearrange.samplers.receptacle.ReceptacleTracker.init_scene_filters(self, mm: habitat_sim._ext.habitat_sim_bindings.MetadataMediator, scene_handle: str) -> None

Initialize the scene specific filter strings from metadata. Looks for a filter file defined for the scene, loads filtered strings and adds them to the exclude list of all ReceptacleSets.

Parameters
mm The active MetadataMediator instance from which to load the filter data.
scene_handle The handle of the currently instantiated scene.