Principle:Facebookresearch Habitat lab HITL Environment Setup
| Knowledge Sources | |
|---|---|
| Domains | Human_in_the_Loop, Simulation |
| Last Updated | 2026-02-15 02:00 GMT |
Overview
Initialization of the interactive simulation driver that bridges the Habitat environment with human input controllers and AI agent controllers.
Description
HITL Environment Setup creates the simulation driver (LabDriver) that manages the Habitat environment lifecycle for interactive sessions. It initializes the environment, creates controllers for each agent (GUI-driven human controllers and/or AI baseline controllers), sets up camera management, and prepares the rendering pipeline. The driver serves as the central orchestrator for all frame-by-frame simulation updates.
Usage
Use when building any interactive application with the habitat-hitl framework. The LabDriver is created once during application startup and manages the entire session lifecycle.
Theoretical Basis
The HITL environment follows a model-view-controller pattern:
- Model: Habitat
Envmanages the simulation state - View: Camera helpers and rendering pipeline produce visual output
- Controller: GuiController (human input) and BaselinesController (AI policy) generate actions
# Abstract driver lifecycle
driver = LabDriver(config, gui_input, renderers)
while session_active:
human_actions = gui_controller.get_actions(user_input)
ai_actions = baselines_controller.get_actions(observations)
frame_data = driver.sim_update(dt)
render(frame_data)