Agent#
An Agent
is a simple container object which
represents information about the agent, i.e., its position and orientation, and
the GridObject
which it holds. Note
that, despite its name, the Agent
object does
not represent the decision process of the agent, but only information relative
to the agent in the environment.
- class Agent(position, orientation, grid_object=None)[source]
Information relative to the agent.
NOTE: This does not necessarily represent the true full state of the agent; e.g., the agent field of an observation objects, would only contain the observable versions of the agent’s state.
Creates the agent at position with orientation and holding grid_object.
- Parameters
position (Position) – position of the agent relative to some area.
orientation (Orientation) – orientation of the agent relative to some area.
grid_object (Optional[GridObject]) – object held by the agent.
Note
Agent
objects are used in both
State
and
Observation
, and thus contextually
contains different types of information. For example, the
Agent
instance of an
Observation
object may not contain the
agent’s global state position, but only its local position (relative to
its POV).