habitat.core.embodied_task module

Implements tasks and measurements needed for training and benchmarking of habitat.Agent inside habitat.Env.

Contents

Classes

class Action
An action that can be performed by an agent solving a task in environment. For example for navigation task action classes will be: MoveForwardAction, TurnLeftAction, TurnRightAction. The action can use Task members to pass a state to another action, as well as keep own state and reset when new episode starts.
class ActionSpace
A dictionary of EmbodiedTask actions and their argument spaces.
class EmbodiedTask
Base class for embodied tasks. EmbodiedTask holds definition of a task that agent needs to solve: action space, observation space, measures, simulator usage. EmbodiedTask has reset() and step() methods that are called by Env. EmbodiedTask is the one of main dimensions for the framework extension. Once new embodied task is introduced implementation of EmbodiedTask is a formal definition of the task that opens opportunity for others to propose solutions and include it into benchmark results.
class EmptySpace
A gym.Space that reflects arguments space for action that doesn’t have arguments. Needed for consistency ang always samples None value.
class Measure
Represents a measure that provides measurement on top of environment and task.
class Measurements
Represents a set of Measures, with each Measure being identified through a unique id.
class Metrics
Dictionary containing measurements.
class SimulatorAction
An EmbodiedTask action that is wrapping simulator action.