Thanks Jakob.
At the end I am going to control the phase manually, I think it's the best
approach for my problem.

Best regards,
Jose

On Tue, 10 Jul 2018 at 18:50, Jakob Erdmann <[email protected]> wrote:

> I would not necessary suggest that you take the save/load approach. If you
> control the traffic light via traci anyway, you should be able to achieve
> everything by remote-controlling a static traffic light without the need to
> control an actuated light.
>
> Nevertheless here are some documentation pointers:
> - save state: http://sumo.dlr.de/wiki/Simulation/SaveAndLoad
> - to create a new tlLogic definition, you can just generate the xml file
> with your script and then add it as an additional file when loading
> - traci.load: http://www.sumo.dlr.de/daily/pydoc/traci.html#-load (state
> loading options must be given here)
>
> regards,
> Jakob
>
> 2018-07-10 16:48 GMT+02:00 Jose Monreal Bailey <[email protected]>:
>
>> 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 <[email protected]>
>> 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 <[email protected]>:
>>>
>>>> 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
>>>> [email protected]
>>>> 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
>>> [email protected]
>>> 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
>> [email protected]
>> 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
> [email protected]
> 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
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to