habitat-sim icon indicating copy to clipboard operation
habitat-sim copied to clipboard

Gibson semantic regions missing

Open srama2512 opened this issue 4 years ago • 1 comments

Habitat-Sim version

v0.1.5

❓ Questions and Help

I'm trying to access the room annotations from Gibson tiny semantics. However, the region annotations are empty. I created the Gibson semantic meshes using

tools/gen_gibson_semantics.sh /path/to/3DSceneGraph_medium/automated_graph /path/to/GibsonDataset /path/to/output

Code to reproduce the issue

import os
import habitat_sim

SCENE_DATA_PATH = "data/scene_datasets/gibson_semantic"

def make_configuration(scene_id):
    # simulator configuration
    backend_cfg = habitat_sim.SimulatorConfiguration()
    backend_cfg.scene.id = os.path.join(SCENE_DATA_PATH, scene_id)
    backend_cfg.enable_physics = False

    # agent configuration
    sensor_cfg = habitat_sim.SensorSpec()
    sensor_cfg.uuid = "semantic"
    sensor_cfg.sensor_type = habitat_sim.SensorType.SEMANTIC
    sensor_cfg.resolution = [1080, 960]

    agent_cfg = habitat_sim.agent.AgentConfiguration()
    agent_cfg.sensor_specifications = [sensor_cfg]
    agent_cfg.height = 0.88
    agent_cfg.radius = 0.18

    return habitat_sim.Configuration(backend_cfg, [agent_cfg])

if __name__ == "__main__":
    cfg = make_configuration("Allensville.glb")
    sim = habitat_sim.Simulator(cfg)
    print(sim.semantic_scene.regions)
    print(sim.semantic_scene.levels)
    print(sim.semantic_scene.objects)

Outputs

[]
[]
[None,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026f6bf0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e98b0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e9e30>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e9ab0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3530>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3eb0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3f30>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3fb0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3bb0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e32f0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e34f0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e30b0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3930>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3670>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3370>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e38b0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3030>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026e3570>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fd9f8907330>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fd9f8907670>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fd9f8907430>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fd9f8907370>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fd9f8907b30>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb230>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fbf30>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb1b0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb8f0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb270>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb170>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb2b0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb8b0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fbe30>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fb0f0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda026fbcf0>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda02678b70>,
 <habitat_sim._ext.habitat_sim_bindings.SemanticObject at 0x7fda02678230>]

srama2512 avatar May 10 '21 16:05 srama2512

Hey, @srama2512. Just noticed this wasn't ever addressed. Still an open issue, any resolution?

aclegg3 avatar Mar 28 '22 18:03 aclegg3