Hello,
there is indeed no built-in function to modify the offset. However, when
you change phase duration to x (command 0x24) the offset is effectively
modified (by originalRemainingduration - x) as all subsequent phases retain
their previous duration (and the modified phase will assume the original
duration in the next cycle).
Unfortunately there currently no function yet to retrieve
originalRemainingDuration so you may have to keep track of this yourself
(see http://sumo.dlr.de/trac.wsgi/ticket/1740)
regards,
Jakob

2016-03-18 11:26 GMT+01:00 <[email protected]>:

> Hi,
>
> I am looking for a way to modify offset for traffic lights on SUMO. I know
> that by redefining phase duration time, phase can be modified during the
> simulation. But I am not sure if there is any build in function to modify
> offset?
>
> Some relevant information I found online (e.g.
> https://sourceforge.net/p/sumo/mailman/message/33411655/) mentioned about
> additional.xml file. However, I need to do calculation by the end of the
> cycle during the simulation and then determine what offset value to use.
>
> The solution I can think of is to modify phases' structure manually to
> mimic
> the effect of the offset.
>
> Does anyone know more about this? Correct me if I was wrong.
>
> Thank you in advance.
> Rui
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to