Minigrid icon indicating copy to clipboard operation
Minigrid copied to clipboard

[Proposal] Add support for multi-agent environments

Open pseudo-rnd-thoughts opened this issue 2 years ago • 5 comments

It would be nice to add gridworld based multi-agent environments. These are could be used for reserach into RL safety, explainability, emergent communication, etc

If there is anyone who has already create MA environments or is interested in working on this problem then please respond

pseudo-rnd-thoughts avatar Sep 10 '22 19:09 pseudo-rnd-thoughts

Check out this: #37

ygrayson avatar Jan 27 '23 14:01 ygrayson

Wow, thanks for pointing that out. As the project is Apache 2.0, we should be able to move the code to Minigrid to allow more users to use it. I haven't looked at the code but we might want to shift the project to use PettingZoo rather than Gym/Gymnasium as it is multi-agent rather than single agent.

pseudo-rnd-thoughts avatar Jan 30 '23 12:01 pseudo-rnd-thoughts

Here's a fork with multi-agent support: https://github.com/ini/multigrid

It follows the RLlib MultiAgent / PettingZoo ParallelEnv API.

ini avatar Jun 09 '23 07:06 ini

Amazing, thanks for doing that. Could you be interested in merging this into minigrid itself?

pseudo-rnd-thoughts avatar Jun 09 '23 10:06 pseudo-rnd-thoughts

I'm not sure how simple that would be. While the external interface is supposed to be the same as minigrid, there are some significant changes under the hood for speed optimizations (i.e WorldObj and Grid are represented with numpy arrays, and the partial observation logic uses numba.)

Also, it only supports Python 3.9+.

ini avatar Jun 09 '23 10:06 ini