HabGymWrapper class
Class methods
- def class_name()
Methods
- def close(self)
- def current_episode(self, all_info: bool = False) -> BaseEpisode
- def render(self, mode: str = 'human', **kwargs)
- def reset(self, *args, return_info: bool = False, **kwargs) -> typing.Union[numpy.ndarray, typing.Dict[str, numpy.ndarray], typing.Tuple[typing.Union[numpy.ndarray, typing.Dict[str, numpy.ndarray]], dict]]
- def seed(self, seed = None)
- def step(self, action: typing.Union[numpy.ndarray, int]) -> typing.Tuple[typing.Union[numpy.ndarray, typing.Dict[str, numpy.ndarray]], 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: RLEnv, save_orig_obs: bool = False)
- 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.
- number_of_episodes: int get
- observation_space: gym.spaces.space.Space get set
- reward_range get set
- spec get
- unwrapped: RLEnv get
Method documentation
def habitat. gym. gym_wrapper. HabGymWrapper. __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_wrapper. HabGymWrapper. __format__(self, format_spec, /)
Default object formatter.
Return str(self) if format_spec is empty. Raise TypeError otherwise.