added scenario self stop, agent setup, action masking in PPO
This commit is contained in:
@@ -134,6 +134,7 @@ class BaseComponent(ABC):
|
||||
def reset(self):
|
||||
"""Reset any portion of the state managed by this component."""
|
||||
world = self.world
|
||||
self.n_agents = world.n_agents
|
||||
all_agents = world.agents + [world.planner]
|
||||
for agent in all_agents:
|
||||
agent.state.update(self.get_additional_state_fields(agent.name))
|
||||
|
||||
Reference in New Issue
Block a user