def make_habitat_configuration()

in common/utils.py [0:0]


def make_habitat_configuration(scene_path: str, use_sensor: bool = False):
    # simulator configuration
    backend_cfg = habitat_sim.SimulatorConfiguration()
    backend_cfg.scene_id = scene_path

    # agent configuration
    sensor_cfg = habitat_sim.CameraSensorSpec()
    sensor_cfg.resolution = [1080, 960]
    sensor_cfg.sensor_type = habitat_sim.SensorType.DEPTH
    agent_cfg = habitat_sim.agent.AgentConfiguration()
    agent_cfg.sensor_specifications = [sensor_cfg] if use_sensor else []

    return habitat_sim.Configuration(backend_cfg, [agent_cfg])