Hi Moritz,
you are free to implement control algorithms as complex as you wish using TraCI
 (as you apparently already do). I do not understand why saving the
value to a variable does not work because this should happen on the
client (probably python) side and is not modified by Sumo at all.
Maybe posting some code would help.

Best regards,
Michael

2013/12/26 Moritz Schwarzkopf, BBT-71 <[email protected]>:
> Hello,
>
> At first Merry Christmas.
>
> So now I have a question, it is possible to control one traffic light with 2 
> detectors.
>
> My szenario looks like this.
>
> I have one traffic light and after the traffic light 2 detectors. At the 
> beginning the TL is on green, when the car passes the first detector it 
> should go on red and stay red. When the car reaches the second detector the 
> TL should stay red but clear the information of the first detector. The TL 
> should not change to green until the car left the second detector.
> At detector 2 is a busStop, this busStop should only be arrived by one car. 
> It should no car use it until the previous car left the busStop.
>
> I tried to save the value of traci.inductionloop.getLastStepVehicleNumber(“ID 
> of InductionLoop”) in a variable, but it won’t work because inductionloops 
> have time steps and they clear their previous values.
>
>
> Thanks for your help!!
>
>
> Regards,
>
> Moritz
>
> ---------------------------------------------------------------
> Moritz Schwarzkopf
> International Intern
> BBT-71, Plant Structure Development Dadong
> BMW Brilliance Automotive Ltd. / 华晨宝马汽车有限公司
> Mobile : +86 155 2447 2481
> Mail to / 邮箱: 
> [email protected]<mailto:[email protected]>
> ---------------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to