Skip to content
New issue

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

how can i use benchmarl run my own environment? #145

Open
krendluck opened this issue Nov 24, 2024 · 3 comments
Open

how can i use benchmarl run my own environment? #145

krendluck opened this issue Nov 24, 2024 · 3 comments

Comments

@krendluck
Copy link

I have a new environment, how can i use benchmarl to run it,Thanks

@matteobettini
Copy link
Collaborator

matteobettini commented Nov 24, 2024

Thanks for this.

So first it should be compatible with torchrl.
If you have it in PettingZoo or VMAS or other already compatible interfaces this is already the case.

Then you need to create a new task https://github.com/facebookresearch/BenchMARL/tree/main/examples/extending/task

Here is a PR example of following this process and adding a new task #84

@krendluck
Copy link
Author

krendluck commented Nov 28, 2024

My environment is a mpe environment, like https://github.com/openai/multiagent-particle-envs, so i don't know how to use it on benchmarl, i'll try this https://github.com/facebookresearch/BenchMARL/tree/main/examples/extending/task, thanks

@matteobettini
Copy link
Collaborator

matteobettini commented Nov 30, 2024

That's great, we are compatible in many ways with MPE envs!

You could use the PettingZoo interface (there are already other MPE envs in benchmal through that). Basically following something like #84

Or you can implement it vectorized using VMAS (https://github.com/proroklab/VectorizedMultiAgentSimulator) which basically is compatible with all MPE features but faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants