Closed Loveen01 closed 7 months ago
Hi, I'm glad sumo-rl is being useful!
1) When you set fixed_ts=True
, the simulation uses the traffic signal configuration and phase durations defined in the .net file. In this case, delta_time does not affect the duration of the phases.
2) Yes, I just implemented this: https://github.com/LucasAlegre/sumo-rl/commit/0e741e3422437605b2809b1ea36e8f73fddd26ad :)
amazing thank you!
Hi, I am using SUMO-RL for my masters project it has been very useful, and I have 2 questions to ask.
I can see that the fixed time traffic control can be enabled in the
SumoEnvironment
class by enabling the parameterfixed_ts = True
, and we see thatself.step()
will change the phases one after the other within a fixed time afterself.delta_time
seconds has passed (if we additionally pass noactions_dict
to thedef step()
function).My 2 questions are:
SumoEnvironmentPZ
to support this feature too? The step() in SumoEnvironmentPZ overrides theSumoEnvironment.step()
but does not seem to accept an empty action dictionary to be passed into it, in contrast to theSumoEnvironment.step()
function.Thanks alot for your time.