specless.wrapper.labelwrapper

Label MiniGrid Wrapper

import gym_minigrid # noqa: F401 import gymnasium as gym from specless.env.labelwrapper import LabelMiniGridWrapper

env = gym.make(“MiniGrid-BlockedUnlockPickup-v0”) env = LabelMiniGridWrapper(env) state, info = env.reset() print(state)

label = env.get_label_from_state(state) print(label)

returns:

_description_

rtype:

_type_

Classes

AddPosDirToMiniGridWrapper

LabelMiniGridWrapper