-
Notifications
You must be signed in to change notification settings - Fork 815
Open
Description
When an agent dies, the following code in class conversions.py will be called to clean up them
while self.aec_env.agents and ( self.aec_env.terminations[self.aec_env.agent_selection] or self.aec_env.truncations[self.aec_env.agent_selection] ): self.aec_env.step(None)
Since this is the processing after the end of a round, self.aec_env.agent_selection will point to the first agent. If the first agent is not dead, the cleanup of the dead agents will not be triggered. And the dead agent will be retained until the next round of iteration.
Is this a bug in MPE?
I tried to traverse all agents to clean up the dead individuals, but it caused an error because agent_selection did not match.
THKs
Metadata
Metadata
Assignees
Labels
No labels