Skip to main content

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

Q1
https://sumo.dlr.de/docs/Simulation/Output/TripInfo.html
https://sumo.dlr.de/docs/Simulation/Output/StatisticOutput.html

Q2
https://sumo.dlr.de/docs/FAQ.html#how_do_i_maintain_a_constant_number_of_vehicles_in_the_net
(the answer involving --max-num-vehicles is probably best suited for your scenario)

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

See https://sumo.dlr.de/docs/TraCI.html

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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top