Skip to content

May I know the meaning of this line? #126

Answered by Toni-SM
berttggg asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @berttggg

skrl multi-agent environment wrapper is based on PettingZoo Parallel API.
Then, there are 2 properties related to the available agents:

  • possible_agents: A list of the names of all possible agents the environment could generate.. This cannot be changed through play or resetting.
  • agents: A list of the names of all current agents. These may be changed as an environment progresses (i.e. agents can be added or removed).

The second one is used as condition to reset the environment as shown in the PettingZoo Parallel API Usage.

https://github.com/Farama-Foundation/PettingZoo/blob/f0c94c6f78a0d24a85d8e60f3685b076b4aa6510/docs/api/parallel.md?plain=1#L29

while env.agents:

Think of i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by berttggg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants