Registry 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:
- Register a task action:
- Register a simulator:
- Register a sensor:
- Register a measure:
- Register a dataset:
- Register a environment:
- class Registry