habitat_sim.scene.SemanticObject class

Special methods

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

Properties

aabb: magnum.Range3D get
category: SemanticCategory get
id: str get
The ID of the object, of the form <level_id>_<region_id>_<object_id>
obb: geo.OBB get
region: SemanticRegion get
semantic_id: int get

Method documentation

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

Default object formatter.

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

Property documentation

habitat_sim.scene.SemanticObject.id: str get

The ID of the object, of the form <level_id>_<region_id>_<object_id>

For some datasets, <region_id> portion of the full ID will be globally unique, while in other datasets, it will only be unique for each level.