module
registryRegistry is central source of truth in Habitat.
Taken from Pythia, it is inspired from Redux’s concept of global store. Registry maintains mappings of various information to unique keys. Special functions in registry can be used as decorators to register different kind of classes.
Import the global registry object using
from habitat.core.registry import registry
Various decorators for registry different kind of classes with unique keys
- Register a task:
@registry.register_task
- Register a task action:
@registry.register_task_action
- Register a simulator:
@registry.register_simulator
- Register a sensor:
@registry.register_sensor
- Register a measure:
@registry.register_measure
- Register a dataset:
@registry.register_dataset
- Register a environment:
@registry.register_env
Classes
- class Registry
Data
- TYPE_CHECKING = False
- registry