Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Number of cars entering and leaving region

Hi all,

I am trying to get the number of cars entering and leaving a region (defined by a set of traffic lights) at each simulation step using TraCI. For example, in the attached figure, find out how many cars enter and exit by n0, n1, ... w0 and w1.

I thought about using induction loops, but I believe it would be a limiter when implementing a large-scale scenario.

Would anyone have any other ideas?

Thank you and best regards,
Taylor

Attachment: 1_region.png
Description: PNG image


Back to the top