Hi Rohan,
you can track the times the vehicle was rerouted using the vehicle route
output <https://sumo.dlr.de/docs/Simulation/Output/VehRoutes.html> . The
stops of a vehicle are recorded in the stop output
<https://sumo.dlr.de/docs/Simulation/Output/StopOutput.html> . By combining
information from both sources you should be able to get the additional
travel time induced by rerouting.
Regarding your other questions:
1. Flow-generated vehicles adhere to a defined naming scheme: Their id is
"<flow-ID>.<index>". Thus you can iterate through all vehicles from
traci.vehicle.getIDList
<https://sumo.dlr.de/pydoc/traci._vehicle.html#VehicleDomain-getIDList>
and collect data from vehicles which follow the naming scheme.
2. Parking means the vehicle has planned to stop. Use
traci.vehicle.getNextStops
<https://sumo.dlr.de/pydoc/traci._vehicle.html#VehicleDomain-getNextStops>
to get information about the stops ahead.
3. Rerouters can be restricted to certain vehicle types. If the vehicle is
concerned by the rerouter, then it will be rerouted.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Calculating Rerouting Time
Datum: 2024-02-05T04:36:07+0100
Von: "Rohan Verma via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
Dear community,
I have a scenario where vehicles attempt to park. If the parking space is
already occupied, then the vehicles reroute to another parking space. I
wish to calculate the time spent during this rerouting, i.e., from when the
vehicle starts to reroute to when it finally parks. Can I obtain this
information?
I tried using "waitingTime", but it also includes time spent in traffic
jams.
Also, can TraCI be used to obtain the following information:
1. What is the average speed of all the vehicles of a particular flow
present in the simulation in the last timestamp?
2. What parking space is a particular vehicle heading towards?
3. If I change the stop of a vehicle using TraCI, and the changed
destination has a rerouter, will the vehicle reroute?
Any help is appreciated.
Thanks and regards,
Rohan
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user