habitat.core.registry module

Registry is central source of truth in Habitat.

Contents

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

Classes

class Registry

Data

registry