Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to output a xml file from a Traffic Light?

Traffic lights only support output regarding to their switching operations https://sumo.dlr.de/docs/Simulation/Output/Traffic_Lights.html
However, you can couple an e2detector so it's output intervals are synchronized with an traffic light cycle: https://sumo.dlr.de/docs/Simulation/Output/Traffic_Lights.html#coupled_lane_area_detectors
Also, you can generate e2 / e3 detectors to cover the approaches to a traffic light: https://sumo.dlr.de/docs/Simulation/Output/index.html#values_for_junctions


Am Do., 9. Dez. 2021 um 05:17 Uhr schrieb Starlight Charlotte <jeremiahferrer26@xxxxxxxxx>:

I’m sorry, I’m not sure what you meant by NEMA type Controller, what I was the output of a xml file similar to the e2 detectors like this one

 

But for traffic lights in xml format.

 

Thank You in Advance.

 

Sent from Mail for Windows

 

From: Qichao Wang
Sent: Thursday, December 9, 2021 8:19 AM
To: Sumo project User discussions
Subject: Re: [sumo-user] How to output a xml file from a Traffic Light?

 

If you are using NEMA type of controller, you should be able to output the signal light state history by setting whetherOutputState parameter to “true”. If you need the record to be at every 0.1 sec frequency, just set the simulation resolution to be 0.1 sec by using the --step-length <TIME> option.

 

Thanks,

Qichao

 

 

On Wed, Dec 8, 2021 at 5:10 PM Nao Tomori <jeremiahferrer26@xxxxxxxxx> wrote:

I would like to follow up on my question

Is there a way to output traffic lights in xml format?

 

On Wed, Dec 8, 2021, 10:58 AM Starlight Charlotte <jeremiahferrer26@xxxxxxxxx> wrote:

Dear Users,

 

I’d like to know how to create an output a traffic light’s data to a xml file similar to e2 detectors like this one

With the freq of 10

 

 

Thank you very much in advance, and God Bless

 

 

Sent from Mail for Windows

 

 

Virus-free. www.avast.com

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top