Hi,

I was planning to find some statistics but can't figure out how to do it.

1. How many times a car has stopped at intersections, that is if a car
passes through 4 junctions but only stops at 2 red lights then I want to
know that. I know getStopState returns (1 * stopped + 2 * parking + 4 *
personTriggered + 8 * containerTriggered + 16 * isBusStop + 32 *
isContainerStop) but I don't think I need all of these.

2. How many cars have passed through a junction/intersection? I couldn't
find any function in :
https://sumo.dlr.de/pydoc/traci._junction.html#JunctionDomain-getIDList
that can help

3. Finally, is there a way to find out how many cars are waiting at a
junction based on direction? Let's say if we have a 4-way intersection and
I want to find out how many cars are waiting at the north traffic light. I
tried to use getLastStepVehicleNumber on an edge but I think that returns
all cars present on that edge rather than just cars present at the
intersection.

Sorry for so many questions, I am just stuck and need a little advice.
Thanks in advance.

-- 
Thank you.
Abdullah
_______________________________________________
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to