Questions tagged [sumo]

SUMO (Simulation of Urban MObility) is a microscopic traffic simulation package. This tag should be used when you have a question about software development with SUMO package.

SUMO is a free and open traffic simulation suite which is available since 2001. SUMO allows modelling of intermodal traffic systems including road vehicles, public transport and pedestrians. Included with SUMO is a wealth of supporting tools which handle tasks such as route finding, visualization, network import and emission calculation. SUMO can be enhanced with custom models and provides various APIs to remotely control the simulation.

See the contact page for support resources.

The core applications are written in C++ while the script tooling around it is in Python. Clients for external interfacing over the Traffic Control Interface (TraCI) protocol are available in Python, Java, C++ and MATLAB.

643 questions
3
votes
2 answers

How to disable lane changes in SuMO?

I am using a TraCI call to set the lane change mode of a vehicle to 0 to disable all lane changing: TraCICommandInterface::setLaneChangeMode(0b000000000000); However, the vehicle still does a lane change afterwards. I also tried 256 (i.e.…
Julian Heinovski
  • 1,822
  • 3
  • 16
  • 27
3
votes
1 answer

How to begin a veins simulation at t > 0

I am working on veins simulation with LuST scenario. My goal is to choose a time period and begin my veins simulation at a certain moment, e.g. 6:00, of LuST. In SUMO, parameter "begin" can be modified so it's easy to set traffic flow. So I think it…
Jason Song
  • 145
  • 1
  • 9
3
votes
1 answer

VEINS: Dynamic re-routing algorithm

In SUMO, while converting OSM file to SUMO compatible road network using DUAROUTER we can pass --routing.algorithm parameter to use one of these (default is Dijkstra). In veins demo app there is a logic to simulate accident and vehicles reroute on…
Ahmad Ahsan
  • 187
  • 3
  • 18
3
votes
2 answers

How to get n number of vehicles for x sec of simulation using SUMO randomTrips script?

I am using Veins simulator, for creating cars with path I am using the following commands: python c:/DLR/Sumo/tools/randomTrips.py -n test.net.xml -e 1200 -l python c:/DLR/Sumo/tools/randomTrips.py -n test.net.xml -r test.rou.xml -e 1200 -l This…
Sam1324
  • 387
  • 2
  • 13
3
votes
1 answer

Checking for duplicates in VEINS

I am new to Veins and trying to implement a mechanism to detect if the WSM packet was received before. I am using the "psid" as the main variable to identify the packet - is it correct? Will this type of code work? : bool…
user629034
  • 659
  • 2
  • 11
  • 30
3
votes
1 answer

How to maintain constant number of vehicles through out the simulation in SUMO simulation?

I am a new to SUMO. Can someone help me on how to maintain the constant number of vehicles i.e. constant density, over the complete simulation period like for 1 hr. In this post, they said that using options --begin, --end. I didn't understand how…
vishnu
  • 363
  • 3
  • 20
2
votes
1 answer

Recreate sumo projection

After converting osm file to sumo network I got this info
benzom
  • 23
  • 3
2
votes
1 answer

How to generate position, speed and acceleration of each car in an output file sumo

I'm working on sumo and I want to generate the trajectory for each car in an output file. To generate an output file containing each vehicle's position, speed, acceleration, I found maybe the most suitable output is the following…
MinaMRM
  • 343
  • 4
  • 16
2
votes
1 answer

how to run a SUMO simulation 100 times automatically (using hand is not allowed)

I want to run a SUMO simulation consecutively with different scenarios 100 times. I am using my hand to close the GUI while the current run is finished and to start the next simulation. So, I am looking for a way by which there is no need to apply…
Ali
  • 115
  • 5
2
votes
1 answer

How to establish communication between specific nodes in Vanet?

I have SUMO, Omnet++, Inet, veins and Vanet to estblish the communication between nodes (Vehicles in SUMO) in my simulation. I did message passing between the Nodes(Vehicles) in omnet++ using VANET But the message is passing between all the nodes…
2
votes
1 answer

Misunderstanding of SUMO document

I want to know what this paragraph from the SUMO document exactly says: duaIterate.py supports many of the same options as sumo. Any options not listed when calling duaIterate.py --help can be passed to sumo by adding sumo--long-option-name arg…
Ali
  • 115
  • 5
2
votes
2 answers

Omnet++5.0: Simulation terminated with exit code: -1073741819

I'm beginner at omnet++ and veins, I have just installed Omnet++ 5.0 (on Windows 10) and installed INET with it as well. I've added a new application traci named "obstacle" to block véhicules, I've changed the files erlangen.launchd.xml and…
2
votes
1 answer

Doubts regarding SUMO, VEINS AND OMNET++

I am having a bit confusion in understanding the difference between usage of Veins, Omnet++ and Sumo. As per my understanding: SUMO is to provide road traffic simulation(vehicle movements) Omnet++ is for network simulation (cars can be simulated as…
2
votes
1 answer

Aggregating big xml file to dictionary takes too long in Python using lxml etree

I'm having problems iterating and summing up values of a big xml file (~300MB) into a python dictionary. I quickly realized that it's not lxml etrees iterparse which is slowing things down but the access to a dictionary on each iteration. The…
scheda74
  • 43
  • 5
2
votes
1 answer

Why is the value of CO2 emission calculated in the simulation different from the value stored in the .sca file?

In my simulation, I calculated the travel time and CO2 emission.I calculated CO2 emission using the following functions: double TraCICommandInterface::Vehicle::getCO2(std::string vehicle, std::string lane, std::string edge) { return…
rakhsha
  • 99
  • 7
1
2
3
42 43