If the desired direction has a dedicate turning lane you can use any of the
detectors or even laneData output.
Otherwise you have to use an E3 detector that covers the relevant incoming
and outgoing lane.
All these options allow aggregation by a configuragable interval.
E2 detectors can be coupled to the switching of the traffic light.

2018-07-19 18:06 GMT+02:00 Jose Monreal Bailey <[email protected]>:

> Hi Jakob,
>
> Regarding to retrieving the vehicle rate per unit of time(second, minutes)
> passing through a junction in a certain direction, what would be the best
> approach, if I need to retrieve it in run time every X unit of time, or
> under certain event.
>
> Best regards,
> José
>
> On Tue, 3 Jul 2018 at 14:43, Jakob Erdmann <[email protected]> wrote:
>
>> see http://sumo.dlr.de/wiki/Simulation/Output#values_for_junctions
>> If you want to separate the directions you can also use E3 detectors but
>> you have to define them manually rather than with the linked scripts.
>>
>> Another very basic approach is
>>   grep -c "edge1 edge2"' vehroutes.xml
>> To count the total number of vehicles taking a particular turn from edge1
>> to edge2
>>
>> regards,
>> Jakob
>>
>>
>> 2018-07-03 13:28 GMT+02:00 Jose Monreal Bailey <[email protected]>:
>>
>>> Dear all,
>>>
>>> How can I get the vehicle rate per second passing trough a Traffic Light.
>>> And how can I get the number of vehicles going taking different
>>> directions in that junction?
>>>
>>> Best regards,
>>> José
>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>>
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to