eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.55k stars 1.43k forks source link

Signalized intersection control with additional detectors #14679

Closed ufukkirbas closed 7 months ago

ufukkirbas commented 7 months ago

Add your issue description here. Signalized intersection control with additional detectors

Can continuous control of the detectors be ensured in the simulation environment operating as shown in the figure? For example, by receiving information from the detectors placed in both lanes that the queue length has reached point B, how can the signal system be set up to allow the passage of any vehicle waiting at arm A by turning the signal at arm C to red according to the figure. In other words, after the signalization working system is "actuated", how can the signal phase transition be made at the intersection by receiving information from a detector assigned by ourselves downstream of the intersection. I would be very grateful if you help me.

If possible, upload an example that shows your problem. 1 2

SUMO-version: SUMO 1.19.0 operating system: Win 11

m-kro commented 7 months ago

So you want the traffic light to operate based on outbound detectors. The standard actuated traffic lights in SUMO work with detectors placed upstream of the intersection, but you can define custom signal switching rules (see doc). There you could define a condition to switch signals if they are occupied for a long time.

ufukkirbas commented 7 months ago

I could not solve my problem from the explanation in the place you referenced. Are there any more detailed examples explaining this subject?

namdre commented 7 months ago

you can download many examples for customized control here: https://sumo.dlr.de/extractTest.php?path=sumo/tls/actuated/conditions

m-kro commented 7 months ago

Here is one which switches phases based on custom conditions: https://sumo.dlr.de/extractTest.php?path=sumo/tls/actuated/conditions/override_phaseAttrs

ufukkirbas commented 7 months ago

Thank you very much for your help.

ufukkirbas commented 7 months ago

I couldn't run the last example you sent. It gives an error when loading the "input_additional2.add" file into Netedit.

Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD0.0'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD0.1'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD1.0'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD1.1'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD2.0'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD2.1'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD3.0'. Error: Attribute 'pos' is missing in definition of laneAreaDetector 'AD3.1'.

namdre commented 7 months ago

Not sure which example you mean. The _tls_actuated_conditions_override_phaseAttrs test opens fine in netedit and also doesn't have any laneAreaDetectors in an additional file.

ufukkirbas commented 7 months ago

The detectors I am trying to control are downstream. Also, I try to control the detectors I define. Not auto-generated detectors in "actuated" phase arrangement. The file that doesn't work is the "allRed_default" you sent first.

namdre commented 7 months ago

the netedit thing is a bug: #14683. You can still run the input with sumo / sumo-gui