sinergym.utils.wrappers.MultiObsWrapper

class sinergym.utils.wrappers.MultiObsWrapper(*args: Any, **kwargs: Any)
__init__(env, n=5, flatten=True)

Stack of observations.

Parameters:
  • env (object) – Original Gym environment.

  • n (int, optional) – Number of observations to be stacked. Defaults to 5.

  • flatten (bool, optional) – Whether or not flat the observation vector. Defaults to True.

Methods

__init__(env[, n, flatten])

Stack of observations.

reset()

Resets the environment.

step(action)

Performs the action in the new environment.

reset()

Resets the environment.

Returns:

Stacked previous observations.

Return type:

list

step(action)

Performs the action in the new environment.