Closed ufukkirbas closed 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.
I could not solve my problem from the explanation in the place you referenced. Are there any more detailed examples explaining this subject?
you can download many examples for customized control here: https://sumo.dlr.de/extractTest.php?path=sumo/tls/actuated/conditions
Here is one which switches phases based on custom conditions: https://sumo.dlr.de/extractTest.php?path=sumo/tls/actuated/conditions/override_phaseAttrs
Thank you very much for your help.
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'.
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.
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.
the netedit thing is a bug: #14683. You can still run the input with sumo / sumo-gui
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.
SUMO-version: SUMO 1.19.0 operating system: Win 11