[Feature] Simplified multiagent config with asymmetric observation spaces #21286
Closed
2 tasks done
Labels
enhancement
Request for new feature and/or capability
P2
Important issue, but not time-critical
rllib
RLlib related issues
rllib-connectorv2
Connector related issues
rllib-env
rllib env related issues
Search before asking
Description
In #16565 and #17046 an improvement was made to allow RLLib to determine the observation and action space from the environment in multiagent environments. This only works when the spaces are the same for all agents though. I want to propose extending this to allow for different spaces for each agent. This could be implemented as a relatively small change, by letting
env.observation_space
andenv.action_space
be multiagent dicts holding the respective spaces for each agent.Use case
Similar to the original PRs mentioned, this would simplify configuration in multiagent settings, and obviate the need to create a dummy env at configuration time just to read off each agent's action and observation space. The original PRs addressed this for symmetric spaces, this would bring the same benefits to environment with different spaces for each agent.
Related issues
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: