habitat.Agent class

Abstract class for defining agents which act inside core.env.Env.

This abstract class standardizes agents to allow seamless benchmarking.

Methods

def act(self, observations: core.simulator.Observations) -> typing.Union[int, str, typing.Dict[str, typing.Any]]
Called to produce an action to perform in an environment.
def reset(self) -> None
Called before starting a new episode in environment.

Method documentation

def habitat.Agent.act(self, observations: core.simulator.Observations) -> typing.Union[int, str, typing.Dict[str, typing.Any]]

Called to produce an action to perform in an environment.

Parameters
observations observations coming in from environment to be used by agent to decide action.
Returns action to be taken inside the environment and optional action arguments.