Motivation
I’ve created a custom PettingZoo environment and I’m looking to integrate it with benchmarl, which is based on torchrl. Currently, the PettingZooEnv class is implemented in torchrl, but it's unclear what the process is for adding a new custom PettingZoo environment.
This feature request is motivated by the need for easier registration and compatibility of custom environments with benchmarl and torchrl. It could help streamline the process for users who develop their own PettingZoo environments.
Solution
I would like to see a clear and concise method to register new PettingZoo environments, either through documentation or a straightforward integration pathway in torchrl. Ideally, this would allow custom PettingZoo environments to be added with minimal effort, leveraging the existing PettingZooEnv structure in torchrl.
Alternatives
An alternative approach could be to manually modify the PettingZooEnv implementation, but this is less user-friendly and may require in-depth knowledge of both frameworks. A guide or tutorial for integrating custom environments would also be an alternative solution.
Additional context
The current setup works well for predefined PettingZoo environments, but adding custom ones could be more intuitive. Enhancing the framework to support easier registration would save time and effort for users extending it with their own environments.
Checklist