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

Is there a way to download only vehicle networks from OSM as .osm file?

I need to download vehicle network only from OSM, and have the ouput be as normal .osm file, that can then be used in OSMnx (that would be the same or similar, as if i did osmnx.graph_from_place('Piedmont, CA, USA', network_type='drive')), i tried…
Matyxus
  • 13
  • 2
-1
votes
1 answer

How to add detector in the traffice light junction?

In the example/sumo/grid.py, we know how to add tl with detector in the network because that is the net we build manually. Now the network is .net.xml and it has included all the tls information and I can't use the add() to add the tls with detector…
tmaccc
  • 1
-1
votes
1 answer

Getting wrong speed value in SUMO

THe following is my autobahn.net.xml
Echchama Nayak
  • 971
  • 3
  • 23
  • 44
-1
votes
1 answer

Why my system is not able to read src file from inet_veins in OMNET++?

This is the veins inet error Here I first installed omnet++ and then INET Veins now I'm getting the following error while integrating them in VANET: make MODE=release all cd src && /usr/bin/make make[1]: Entering directory '/c/Users/Shriya…
-1
votes
1 answer

SyntaxError when runing "python examples/train.py singleagent_ring"

When I run python examples/train.py singleagent_ring I find the following error: file "examples/train.py", line 201 **config ^ SyntaxError: invalid syntax Please any help?
-1
votes
1 answer

Veins:handleLowerMsg(cMessage* msg) does not get activated

I have to build a bit different message set. Thus I had to drift away from DemoBaseAppLayer and had to use directly BaseApplLayer. My ned files are almost sane, as provided by Vienes. I have to build App ned, used Car and Scenario from Viens. I…
gmusjha
  • 39
  • 5
-1
votes
2 answers

How to install SUMOLIB using Python3?

I am working on a project which has SUMOLIB module as a dependency on , but I have no idea how to install it. I tried doing pip install sumolib, but it shows me that no such module exists. Can someone tell me how to install SUMOLIB?
Neel
  • 131
  • 3
  • 9
-1
votes
2 answers

How to create randomely driven cars on SUMO

Ok, what i want is to create cars which havn't predefined flows or trips, because i want to make some cars circulating randomely on a closed network. So i have a closed network and the only way i found to make something kinda similar to what i want…
Xeyes
  • 583
  • 5
  • 25
-1
votes
2 answers

How to use traci and sumo in python?

I am trying to simulate an intersection with traffic light and detectors and train a machine learning classifier to use the information from the detectors to set the traffic light phase. I am able to run the simulation using: import…
Nicolas
  • 699
  • 1
  • 7
  • 9
-1
votes
2 answers

Omnet++ A cRuntimeError exception is about to be thrown std::length_error: basic_string::_M_create

so I get this error when i run my code Error in module (TraCIDemoRSU11p) RSUExampleScenario.rsu[0].appl (id=8) at event #4000, t=45.40151998544: std::length_error: basic_string::_M_create. TRAPPING on the exception above, due to a…
Hadeel A.
  • 19
  • 8
-1
votes
1 answer

New to SUMo (Simulation of Urban MObility ) , need help to understand and solve it

i need to understand and find a possible solution to this problem.i am fairly new to this simulator but cannot find anything about the above mentioned problem https://i.stack.imgur.com/eY23O.png
-1
votes
1 answer

Vanet cognitive radio simulation - do i need mixim?

I am implementing spectrum sensing for VANETs using SuMO, OMNeT++ and Veins. With these three, I believe I can simulate traffic scenarios. Is it also possible to perform spectrum sensing within the nodes (secondary users in VANETs) with only those 3…
Rop
  • 3
  • 2
-1
votes
1 answer

Veins : TraCIMobility::getSignals() method information

Good afternoon. I'm using Veins v4.4 and Sumo 0.25 with Omnet++ v4.6. I was trying to get information about brakes and blinkers: I've found the VehicleSignal field in TraCISCenarioManager.h and the getSignals() method in TraCIMobility.h , but as…
FMA
  • 33
  • 1
  • 7
-1
votes
1 answer

MATLAB system does not run applications

I am trying to interact with SUMO via MATLAB according to script here. At line 43, the MATLAB command is system(['sumo-gui -c ' '"' scenarioPath '"' ' --remote-port 8873 --start&']); Since I am using Ubuntu 16.04.1 LTS, I fixed scenarioPath. Now,…
ar2015
  • 5,558
  • 8
  • 53
  • 110
-2
votes
1 answer
1 2 3
42
43