Petting Zoo Sumo Environment

class sumo_rl.environment.env.SumoEnvironmentPZ(**kwargs)

A wrapper for the SUMO environment that implements the AECEnv interface from PettingZoo.

For more information, see https://pettingzoo.farama.org/api/aec/.

The arguments are the same as for sumo_rl.environment.env.SumoEnvironment.

action_space(agent)

Return the action space for the agent.

close()

Close the environment and stop the SUMO simulation.

compute_info()

Compute the info for the current step.

observation_space(agent)

Return the observation space for the agent.

observe(agent)

Return the observation for the agent.

render()

Render the environment.

reset(seed: int | None = None, options: dict | None = None)

Reset the environment.

save_csv(out_csv_name, episode)

Save metrics of the simulation to a .csv file.

seed(seed=None)

Set the seed for the environment.

step(action)

Step the environment.