Wrappers

Miniworld include several built in wrapper available to researchers in miniworld.wrappers

class miniworld.wrappers.PyTorchObsWrapper(env)[source]

Transpose the observation image tensors for PyTorch

class miniworld.wrappers.GreyscaleWrapper(env)[source]

Convert image observations from RGB to greyscale

class miniworld.wrappers.StochasticActionWrapper(env, prob: float = 0.9, random_action: int | None = None)[source]

Add stochasticity to the actions

If a random action is provided, it is returned with probability 1 - prob. Else, a random action is sampled from the action space.