LocalView.transform_obs#
- LocalView.transform_obs(state: ndarray, agent: Agent) ndarray#
Transform environment state to agent observation.
- Parameters:
state (np.ndarray) – State provided by the grid environment.
agent (objects.Agent) – Agent grid object within the grid environment. Is required to construct observations in relation to the agent objects position and rotation.
- Returns:
Observation within the
observation_space.- Return type:
np.ndarray