Skip to content

Add ts_ids optional parameter to SumoEnvironment to enable traffic light filtering#237

Merged
LucasAlegre merged 1 commit intoLucasAlegre:mainfrom
bsagarzazu:feature/ts-filtering
Oct 18, 2025
Merged

Add ts_ids optional parameter to SumoEnvironment to enable traffic light filtering#237
LucasAlegre merged 1 commit intoLucasAlegre:mainfrom
bsagarzazu:feature/ts-filtering

Conversation

@bsagarzazu
Copy link
Contributor

I added an optional parameter ts_ids to the SumoEnvironment class.

This allows specifying a subset of traffic lights to be controlled by SUMO-RL. Other traffic lights remain in the simulation and follow their original logic. It is useful for experiments where only certain traffic lights need RL control, without modifying the simulation itself.

If ts_ids is None, all traffic lights in the simulation are controlled by default, preserving existing functionality.

@LucasAlegre LucasAlegre merged commit c5ea496 into LucasAlegre:main Oct 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants