Closed thinker310 closed 3 years ago
You can either upgrade to the latest development version or you can compute the vehicle timeLoss based on current vehicle speed and maximum allowed vehicle speed. One way to find all applicable vehicles is to retrieve all vehicles in a radius around the intersection (subscribeContext) and filter those that are still ahead of the intersection by calling getNextTLS on all vehicles. Alternatively, you can define detectors (E2 or E3) to collect the vehicles queued at the intersection or even simplier, collect all vehicles on a pre-defined list of lanes.
Hello, recently, I am researching the traffic signal control and I want to obtain the vehicle's real-time delay by traci, and I do not want to use the output.xml file or tripinfo.xml because it is offline. Could any body help me? Thank you very much!