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

How is the number of vehicles determined? In Sumo route file or in omnetpp.ini?

When using veins as the framework coupling SUMO and omnet++, how is the number of vehicles determined? I know in the SUMO route file, we can put the number of vehicles in the flow tag. For example,
J.G
  • 190
  • 3
  • 13
4
votes
2 answers

Veins Multiple Applications in multiples Vehicle types

in my simulation using OMNeT++, Veins, and SUMO i want run multiple applications according to their vehicle type, as specified in the .rou.xml file using type="XXX" For example: runs APP_private (using something…
4
votes
2 answers

About vehicle number in VEINS

I modified the erlagen.rou.xml using duarouter to get the random routes for the vehicles. It looks like this:
user6126858
4
votes
1 answer

How to provide SUMO telemetry data?

I have created a SUMO simulation including a small map of a city and some vehicles driving around that map. Further on I have an empty Android Project with Google Maps initialized in it. On app start, it just shows Google Maps centered on that…
Ralf Wickum
  • 2,850
  • 9
  • 55
  • 103
3
votes
0 answers

TraCI file has a priblem

I've written a little code in python for getting connected to sumo as follows: import traci traci.start(sumoCmd) step = 0 while step < 200: traci.simulationStep() traci.vehicle.add('x', typeID='DEFAULT_VEHTYPE') …
Ali
  • 115
  • 5
3
votes
1 answer

Is there a way to connect multiple TraCI modules to the OMNet++/veins simulation?

To launch any veins simulation veins_launchd daemon is used. It basically takes the sumo config file, finds an unused port, starts sumo and bridges the connection between sumo and OMNet++. Now as this is a socket-based communication, I want to…
3
votes
1 answer

Veins Attempted to read past end of byte buffer

I am using instant veins with simulte, I created my own scenario that includes vehicles and pedestrians. When I tried to run my simulation, I got this error: Attempted to read past end of byte buffer -- in module ( veins::VeinsInetManager) I don't…
chaimaz
  • 31
  • 1
3
votes
2 answers

Sumo Logic: Count every matching string within a field

I have a parsed field and I need to count the number of times a given string appears within it. It seems relatively simple, but I've been searching through Sumo documentation and now I'm not sure this is even possible. Please help!
admoore
  • 71
  • 1
  • 6
3
votes
0 answers

veins examples cannot load library

I'm a master student beginner in simulations with omnet++. It's my first installation of omnet + veins + sumo for IVC simulations. I follow the veins tutorial I have omnet 5.5.1 sumo 1.3.1 veins 5.0 When I want to run veins examples I have this…
3
votes
0 answers

when test the grid scenario, there is an valueError

On flow tutorial_8, I tried another scenario: SimpleGridScenario I already check the grid.py, and followed the rules for the parameters. My origianl program is that: from flow.envs import Env from gym.spaces.box import Box from…
3
votes
2 answers

SUMO ego vehicles keep right lane after a while

I'm using Webots to simulate an autonomous vehicle. I created the net files and sumo.rou.xml, but after starting the simulation, all ego vehicles will keep their right lane. I want to have traffic in all lanes. Is there anybody here to tell me how…
Mojmal
  • 33
  • 5
3
votes
1 answer

How does veins calculate RSSI in a Simple Path Loss Model?

We are working on an application based on Veins framework which needs RSSI value of received signal and the distance between sender and receiver. We referred to the VeReMi project which also calculates RSSI value and sends it to upper level. We…
Cong Chen
  • 51
  • 2
3
votes
1 answer

Omnet++ sumo and veins

I'am a beginner in omnetpp . i have to create a vehicle in omnet using inet then to connect it via veins to sumo how could i start my project.
A.A.
  • 61
  • 4
3
votes
1 answer

How to add multiple additional files in .sumocfg (SUMO)?

I have multiple Traffic Light Logics, each with specific signal plans. I've defined each junction specific logic in a file: J1.lgc.xml When I try to add these files to configuration file (J.sumocfg)
mrk
  • 8,059
  • 3
  • 56
  • 78
3
votes
1 answer

Control Multiple traffic light junctions in SUMO with TRACI

I'm trying to find a way to control the traffic lights at multiple junctions in a single simulation. I've a grid of 4 x 4 with 16 traffic lights and I want to test a Global algorithm for optimizing traffic flows at each junction in the grid. I'm…
1
2 3
42 43