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
0 answers

sumo Error: Vehicle '0' has no valid route. No connection between edges 'gneE17' and 'gneE20'

I have been working with Netedit for some times now. But when I perform the simulation on sumo gui all I get everytime is Error: Vehicle '0' has no valid route. No connection between edges 'gneE17' and 'gneE20'. Loading of net-file failed. Quitting…
Shia Blue
  • 19
  • 5
0
votes
1 answer

Sumolib: saving the net

Is there any way to save changes to the loaded net automatically? Like there is an option for: net = sumolib.net.readNet("net.net.xml") Is there an option to save it like net.saveNet("net.net.xml") To save the whole net loaded, including existing…
Jojko
  • 57
  • 1
  • 6
0
votes
0 answers

Make SUMO vehicules re enter scenario to make it last longer

Im working with a Vanet scenario in Ns2 and SUMO but Im having some problems with the simulation because all the vehicules leave the scenario really fast and I want them to be inside the scenario during the whole simulation time, how can I make the…
Houston61
  • 39
  • 8
0
votes
0 answers

Ns2 802.11p simulation parameters of propagation model

Im using this tcl of 802.11p, provided by Knud Larsen https://drive.google.com/open?id=1Qxe_ydqwm-CXOQz8CM2Z1QJ2owMvNiw7 What I want to know is how can I calculate the coverage radius of each node or how can I change the default value to something…
Houston61
  • 39
  • 8
0
votes
1 answer

Reroute with probability behaves strangely

I have network with 2 junctions. All cars starts from the left and on the first junction they drive bottom(with probability=0.2) or right (with probability=0.8). And that works perfectly fine. The code doing the stuff is below (hello.rou.xml):
Michał Lis
  • 461
  • 1
  • 6
  • 19
0
votes
1 answer

How to send message from RSU periodically In the RSUExampleScenario in Veins 4.6?

In my simulation, I want to make RSU (RoadSide Unit) send message every 30 seconds to the vehicles in the range. In another work, the WSM messages are generated by RSU, and will be received by vehicles. How can I possibly change the provided…
J.G
  • 190
  • 3
  • 13
0
votes
2 answers

How to get Coordinates of each vehicle in VEINS?

I am using Veins 4.6, Sumo 0.25 and Omnet++ 5.2. I need to get the coordinates of two vehicles (nodes) at a given time, to calculate the distance between them. I have tried to modify the TraCIDemo11p.cc file in the function handlePositionUpdate().…
Toothless
  • 41
  • 1
  • 9
0
votes
1 answer

Open Street Map Web Wizard Usage

Why does a pink screen appear when OSM Web Wizard is invoked from SUMO? I have attached the image below. OSM WEB view page
skp
  • 11
  • 5
0
votes
1 answer

How to set the vehicle departSpeed in veins/omnet++?

I would like to set the departSpeed of each car (mobility node) in veins/omnet++ to be the max allowed speed of the lane. I've already configured it in the SUMO route as follow:
J.G
  • 190
  • 3
  • 13
0
votes
1 answer

SUMO TraCI command not giving desired result

I am trying to get next traffic light that a vehicle will encounter during it's journey. For this we used getNextTLS from vehicle domain. The output does not show all the traffic lights on the way rather shows the same traffic light details…
0
votes
0 answers

TraCI Documentation Query

I'm not able to access data of TraCI package which should apparently have instances of all Domain classes.I tried creating those classes manually but it caused some connection problems. I was running the simulation when an error occurred 'NoneType'…
Amogh Badugu
  • 11
  • 1
  • 4
0
votes
1 answer

How to add a variable/entity in the sumo net file *.net.xml

Hi I am using sumo to generate traffic flow and trying to find a way to tune the parameters conveniently. So I want to use a variable to replace the parameter in the body of the net file. From the web, I found that entity may be helpful, but it…
Jason Song
  • 145
  • 1
  • 9
0
votes
0 answers

(SUMO) TraaS Dynamic Routing & Incomplete Routes

I'm unsure on how to dynamically assign routes to vehicles (with each vehicle having a route which is unique to them) depending on certain conditions (i.e. traffic jams, congestion). I'm using TraaS to interface with SUMO and need to react to…
0
votes
1 answer

SUMO + OpenCV + Python = simulation in time? Is it possible

SUMO simulator: is it possible to add cars to the simulation dynamically? I wanna do script for counting cars from video input in OpenCV+python
0
votes
1 answer

Traci4J with SUMO Returning Error

I’m very much a novice at both SUMO and Traci4J, however, I am interested in learning how to use these tools. I have ran into a problem when running virtually anything on Traci4J. When performing nextSimStep() on a SumoTraciConnection object I am…