def _try_register_igibson_socialnav():
    try:
        import habitat_sim
        has_habitat_sim = True
    except ImportError as e:
        has_habitat_sim = False
        habitat_sim_import_error = e
    if has_habitat_sim:
        from habitat.sims.igibson_challenge.social_nav import iGibsonSocialNav
        from habitat.sims.igibson_challenge.interactive_nav import iGibsonInteractiveNav
    else:

        @registry.register_simulator(name='iGibsonSocialNav')
        class iGibsonSocialNavImportError(Simulator):

            def __init__(self, *args, **kwargs):
                raise habitat_sim_import_error

        @registry.register_simulator(name='iGibsonInteractiveNav')
        class iGibsonSocialNavImportError(Simulator):

            def __init__(self, *args, **kwargs):
                raise habitat_sim_import_error
def _try_register_igibson_socialnav():
    try:
        import habitat_sim
        has_habitat_sim = True
    except ImportError as e:
        has_habitat_sim = False
        habitat_sim_import_error = e
    if has_habitat_sim:
        from habitat.sims.igibson_challenge.social_nav import iGibsonSocialNav
        from habitat.sims.igibson_challenge.interactive_nav import iGibsonInteractiveNav
    else:

        @registry.register_simulator(name='iGibsonSocialNav')
        class iGibsonSocialNavImportError(Simulator):

            def __init__(self, *args, **kwargs):
                raise habitat_sim_import_error

        @registry.register_simulator(name='iGibsonInteractiveNav')
        class iGibsonSocialNavImportError(Simulator):

            def __init__(self, *args, **kwargs):
                raise habitat_sim_import_error