EnvObsDictWrapper class
Class methods
- def class_name()
Methods
- def close(self)
- def render(self, mode = 'human', **kwargs)
- def reset(self, **kwargs) -> typing.Union[ObsType, typing.Tuple[ObsType, dict]]
- def seed(self, seed = None)
- def step(self, action: ActType) -> typing.Tuple[ObsType, float, bool, dict]
Special methods
- def __class_getitem__(...)
- Parameterizes a generic class.
- def __enter__(self)
- Support with-statement for the environment.
- def __exit__(self, *args)
- Support with-statement for the environment.
- def __format__(self, format_spec, /)
- Default object formatter.
- def __getattr__(self, name)
- def __init__(self, env: gym.core.Env)
- Wraps a VectorEnv environment and makes sure its obervation space is a Dictionary (If it is a Box, it will be wrapped into a dictionary)
- def __init_subclass__(...)
- Function to initialize subclasses.
- def __repr__(self)
- def __str__(self)
Properties
- action_space get set
- metadata: dict get set
- np_random: gym.utils.seeding.RandomNumberGenerator get set
- Initializes the np_random field if not done already.
- observation_space: gym.spaces.space.Space get set
- reward_range get set
- spec get
- unwrapped: gym.core.Env get
Data
- OBSERVATION_KEY = 'obs'
Method documentation
def habitat. gym. gym_env_obs_dict_wrapper. EnvObsDictWrapper. __class_getitem__(...)
Parameterizes a generic class.
At least, parameterizing a generic class is the main thing this method does. For example, for some generic class Foo, this is called when we do Foo[int] - there, with cls=Foo and params=int.
However, note that this method is also called when defining generic classes in the first place with class Foo[T]: ….
def habitat. gym. gym_env_obs_dict_wrapper. EnvObsDictWrapper. __format__(self, format_spec, /)
Default object formatter.
Return str(self) if format_spec is empty. Raise TypeError otherwise.