Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Change definition of TLS in runtime

Hi Jakob,

How could I load the new definition and continue from the same spot it was?
The steps would be:

load tlLogic definition into junction
saveState
Reload simulation
?

How do I achieve each one of these?

Best regards,
José


On Tue, 10 Jul 2018 at 15:39, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
This is currently not possible.
It should be possible in the future using setCompleteRedYellowGreenDefinition but does not work at the moment due to https://github.com/eclipse/sumo/issues/4324

As a workaroudn you could use traci.load to reload the simulation with another tlLogic definition.
By using traci.simulation.saveState and using that state when reloading the simulation you might be able to achieve a seamless transition.

regards,
Jakob

2018-07-10 14:51 GMT+02:00 Jose Monreal Bailey <jmonreal@xxxxxxxxx>:
Dear sumo-users,

Is it possible to change the phase max value for an actuated TrafficLight with TraCI?
Would it be the setProgram method?

Best regards,
José

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Back to the top