Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Number of the pedestrians at the traffic lights

You would normally have to figure out the ids of walkingarea-edges and query those.
However, there is also the shortcut method traci.trafficlight.getServedPersonCount

Am Mi., 29. Apr. 2020 um 13:23 Uhr schrieb Nikolay Zhmurov <nikolayzhmurov@xxxxxxxxx>:
Hi,


traci.edge.getLastStepPersonIDs method works great for the edges, but it cannot compute number/IDs of pedestrians at the junction/traffic lights. Any other ideas?

Best regards

Nikolay Zhmurov
On Wednesday, April 29, 2020, 1:22:26 PM GMT+3, Nikolay Zhmurov <nikolayzhmurov@xxxxxxxxx> wrote:



Hi Jakob,

Yes, there can be multiple pedestrians on the same lane. I'll check traci.edge.getLastStepPersonIDs method

Best regards

Nikolay Zhmurov
On Wednesday, April 29, 2020, 12:24:14 AM GMT+3, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


Hello,
for pedestrians it's a bit more complicated because you need to check for their intended pedestrian crossing in case there is more than one at their walkingarea.

regards,
Jakob

Am Di., 28. Apr. 2020 um 20:55 Uhr schrieb Nikolay Zhmurov <nikolayzhmurov@xxxxxxxxx>:
Hi,

I try to get number of the vehicles and pedestrians at the traffic lights. To obtain the number of the vehicles I used lane area detector along with traci.lanearea.getLastStepVehicleNumber method. As far as I noticed, there is no such a method for the pedestrians. Is there any way to obtain the number of the pedestrians at the traffic lights?

Best regards

Nikolay Zhmurov
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top