Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] SUMO Queries

Dear Jakob

I used this command --duration-log.statistics to generate the average values of the simulation such as total delay, travel time. May I please know what do performance statistics represent in the attached figure? Especially what does duration mean in performance statistics?

Thank you

On Wed, 9 Feb 2022 at 11:05, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:

(the answer involving --max-num-vehicles is probably best suited for your scenario)

Precise control over lanechange timing requires use of TraCI
leaderAndgap = traci.vehicle.getLeader(ego)
if leaderAndGap and leaderAndGap[1] < 5:
   traci.vehicle.changeLane(ego, 1, 10)

Am Di., 8. Feb. 2022 um 16:17 Uhr schrieb Sumbal Malik <maliksumbal01@xxxxxxxxx>:
Dear Sumo Community 
I am new to the SUMO simulator and have a few basic questions to ask. I would be thankful if you could answer the below questions:
Q1. How to calculate the travel time of a particular vehicle from source to destination. Say
I have a network of 8 edges with three vehicles and the route is defined as <route id="route_0" edges="e1 e2 e3 e4 e5 e6 e7 e8" />. I want to calculate how long will the ego vehicle take to reach from e1 to e8. Also, how can we calculate the average travel time of all vehicles?
Q2. I have a network of 2 edges and 3 vehicles on a straight lane. How can I iterate the same vehicles on the lane again and again until the simulation ends?
Q3. How can we change the lane of the ego vehicle based on the condition such as if the distance between the leading and following vehicle is less than 5 then change the lane? How the condition will be written.
Thank you
sumo-user mailing list
To unsubscribe from this list, visit
sumo-user mailing list
To unsubscribe from this list, visit

Attachment: Screenshot 2022-02-10 at 12.32.33 AM.png
Description: PNG image

Back to the top