No and this is a known issue: https://github.com/eclipse/sumo/issues/7020
At the moment it only works correctly for the default traffic lights with
fixed plans and no offset.
Am Di., 9. Juni 2020 um 19:48 Uhr schrieb . Abdullah :
> Hi,
>
> does traci.simulation.saveState() save traffic states as
Hi,
does traci.simulation.saveState() save traffic states as well, like the
current phases and all other phases and their remain durations?
On Sun, Jun 7, 2020 at 1:18 AM Jakob Erdmann wrote:
> Yes. You can use traci.load(['sumo', '-n' , 'your.net.xml',
> '--load-state', 'savedstate.xml',
Yes. You can use traci.load(['sumo', '-n' , 'your.net.xml',
'--load-state', 'savedstate.xml', ...])
However, this is not much faster then calling traci.start (the net still
needs to be reloaded).
In the latest development version you can also use
traci.simulation.loadState('savedstate.xml') but