habitat_sim.scene.SemanticCategory class

Base class for all semantic categories.

Different datasets and semantic types (i.e. object or region) will have different information, so there are specific implementations, i.e. Mp3dObjectCategory and Mp3dRegionCategory.

Methods

def index(self, mapping: str = '') -> int
def name(self, mapping: str = '') -> str

Special methods

def __format__(self, format_spec, /)
Default object formatter.

Method documentation

def habitat_sim.scene.SemanticCategory.__format__(self, format_spec, /)

Default object formatter.

Return str(self) if format_spec is empty. Raise TypeError otherwise.