We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug description Cannot decode obs['image'] because of no implementation of agent in minigrid/core/world_object.py
Code
First, create an environment
import gymnasium as gym from minigrid.wrappers import FullyObsWrapper env = gym.make("MiniGrid-Empty-5x5-v0") env = FullyObsWrapper(env) obs, _ = env.reset()
Then, run
env.grid.decode(obs['image'])[0].render(env.tile_size, [0,0])
and return error:
File [~/miniconda3/envs/minigrid/lib/python3.10/site-packages/minigrid/core/world_object.py:101] in WorldObj.decode(type_idx, color_idx, state) 99 v = Lava() 100 else: --> 101 assert False, "unknown object type in decode '%s'" % obj_type 103 return v
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
Cannot decode obs['image'] because of no implementation of agent in minigrid/core/world_object.py
Code
First, create an environment
Then, run
and return error:
Should add the render code of agent in minigrid/core/world_object.py
Checklist
The text was updated successfully, but these errors were encountered: