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
0
votes
1 answer

Difference between getCurrentPosition() and getPositionAt(time) in Veins

I'm using Veins 4.4, OMNeT++ 5.0 and Sumo 0.25. I use traci->getCurrentPosition() to get the actual position of the vehicle, i.e., traci->getCurrentPosition().x and traci->getCurrentPosition().y. I want to estimate the position of the vehicle at a…
0
votes
1 answer

SUMO - simulating traffic scenario

How can I simulate continuous traffic flow from historical data which consists of: 1. Vehicle ID; 2. Speed; 3. Coordinates without knowing the routes of each vehicle ID.
skw1990
  • 63
  • 6
0
votes
2 answers

speed of vechile in veins increases slowly

I'm using veins 4.4, OMNeT++ 5.0 and SuMO 0.25. I have set vehicle speed to 0 to stop them by traciVehicle->setSpeed(0) then after certain case i set them to 20 by traciVehicle->setSpeed(20) to cross the intersection but for no reason it increases…
user12345
  • 55
  • 9
0
votes
2 answers

Calculating distance between cars nodes VEINS

I am new to VEINS and trying to implement weighted p-persistence inside MyVeinsApp.cc. Distance between the sending node and receiving is used in that formula. I saw the 2 functions below. virtual Coord& getSenderPos(); virtual const Coord&…
user629034
  • 659
  • 2
  • 11
  • 30
0
votes
1 answer

How to know the leaving time of each car in the simulation?

I use Omnet++-4.6, sumo-0.22.0 and Veins-4a2. In my simulation, I need to know how much time each car takes during the simulation. So, I need to know the time which each car leaves the simulation. How can I do this please?
Fariha
  • 497
  • 1
  • 5
  • 13
0
votes
1 answer

run #0 finished with error in omnet++

I'm running with OMNET 5.0 veins 4.4 and SUMO 0.25.0 ... Everything works fine until the last time when I tried to run my code the simulation window does not appear but its icon exists in the taskbar and the simulation crashes with this error I have…
0
votes
1 answer

VANET simulation

I'm currently learning simulation of vehicular networks using OMNET++, I read about sumo and veins. I added them successfully, I want to simulate a pseudonym changing strategy based on the use of mix-zone at intersections for comparative study…
sosono
  • 13
  • 1
  • 5
0
votes
0 answers

Information about vehicle speed

I was trying to stop my vehicle through this command in the .rou.xml file: What I've noticed is that the…
moi
  • 13
  • 5
0
votes
1 answer

GettingAltitude (Heading) in Veins simulation

I'm using Veins 4.4 with Omnet 4.6 and Sumo 0.25. I would like to get information about the altitude of the vehicles. I just found the method getLonLat() in TraCICommandInterface class. Is there a method regarding the altitude or some other way…
FMA
  • 33
  • 1
  • 7
0
votes
1 answer

How to obtain the total delay or total timeloss in SUMO and TraCI

I am working on a project to optimize traffic light control for an isolated intersection using SUMO with TraCI in Python. I would like to minimize the total delay for all vehicles with respect to how they would drive if they never had to wait for…
Isabelle Tan
  • 87
  • 1
  • 10
0
votes
1 answer

Error in converting vehicle position ( XY Coordinates to Latitude & Longitude) in SUMO from C++ TRACI Client

I have written a function in TRACI Client to Query SUMO (TRACI Server) for fetching the current position of a car, which i am getting correct in XY coordinate system. Now i want to change this retrieved XY position to Latitude and Longitude.I coded…
Wasim
  • 29
  • 1
  • 10
0
votes
2 answers

Getting the shortest path from a vehicle to a RSU (Like a GPS)

I am working on Veins framework, inside OMNET++ using SUMO to simulate my traffic based on the Bologna joined dataset (available at http://sumo.dlr.de/wiki/Data/Scenarios). The idea at first is to forward messages towards its destinations (a…
W.Junior
  • 13
  • 5
0
votes
1 answer

Disable/remove the NIC module of some vehicle in Veins

Dear OMNeT++/SUMO/Veins community, There is a correct way to disable/remove the NIC module for some vehicle in the Veins? I have lot of vehicles in my scenario and I want set only one part them with communication module, for example 50 %. For this I…
0
votes
1 answer

TraCI value doesn't tally with output

When I do traci.edge.getWaitingTime(str(-108542273)) at the last step of the simulation, I get a value of 0 from it. But when I went to verify on the edge-based state dump generated and found out that the value was 15. Why does the traci value not…
Gavin
  • 2,784
  • 6
  • 41
  • 78
0
votes
1 answer

Adjust edge weight dynamically when routing

I an currently researching on improving traffic conditions via adjusting the edge's weight. The issue currently is that when generating routes via DUAROUTER, it takes in a fixed weight that remains constant throughout the whole routing generation.…
Gavin
  • 2,784
  • 6
  • 41
  • 78