Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
@qichaow for simulations with a step-length< 1, this return of a 1 causes the controller to miss detector calls, as well as not honor vehicle extension timers with < 1 second resolution.
@qichaow for simulations with a
step-length
< 1, this return of a 1 causes the controller to miss detector calls, as well as not honor vehicle extension timers with < 1 second resolution.https://github.com/eclipse/sumo/blob/671b0ad07284c1923428a7405e9b1f0ed43846f5/src/microsim/traffic_lights/NEMAController.cpp#L718
At the same time, I believe there are scenarios where the code doesn't need to execute until the minimum timer for a phase is exhausted.
We could make it dynamically point to the next event similar to the actuated traffic light logic https://github.com/eclipse/sumo/blob/a18a5a093632570324d3a1d0348fd3c8e19e1322/src/microsim/traffic_lights/MSActuatedTrafficLightLogic.cpp#L578