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

How can I extract the OSM XML files of any urban City map?

I am studying UVCAST protocol for vehicular ad hoc networks with infrastructure (RSU).there is RSU Application that will apply on the RSU and UVCAST that will apply on the Vehicles in my code (.cc,.h,.ned ) that wrote according to the studied…
1
vote
0 answers

No module named 'ray.rllib.agents.registry'

When running the example (examples/train.py singleagent_ring) to test my rllib installation to use flow with SUMO, I am getting the following error: from ray.rllib.agents.registry import get_agent_class ModuleNotFoundError: No module named…
1
vote
1 answer

SUMO File Locations

Do the configuration files have to be in the same directory/drive where SUMO has been installed like C:/ ? If not will it cause errors while trying to load files through Python using TraCI ? The reason I ask is that I created a sumo configuration…
1
vote
0 answers

i run a RL on SUMO using traci and rllib but when the sumo-gui lanches nothing happens

i am Getting Started with RLlib and sumo i am tring a rl algorithm to manage traffic lights here is the code description of the code : This code defines a reinforcement learning environment for traffic signal control using SUMO (Simulation of Urban…
shi ft
  • 19
  • 1
1
vote
0 answers

Flow vehicle problems: collision avoidance behavior

In main_UrbanRoadway.py, I generate 3 types of vehicle flows with the help of vehicle.add() defined in flow.core.params.py Requirements My requirements for vehicle flows are shown as follows: Follow the specified acceleration and speed range even…
1
vote
1 answer

How to add custom elements to a SUMO map?

I perform a OSM query for retrieving highways. That I later convert in SUMO with netconvert and polyconvert. This stage works fine. Now, I have a set of Antennas I want to show on the map. I've tried to look online but I'm unable to find a solution.…
1
vote
1 answer

Unable to connect SUMO with Mininet-wifi

When I run vanet_sumo.py downloaded from https://github.com/intrig-unicamp/mininet-wifi, it doesn't find SUMO and traCI connection fails. I can run run sumo configuration file successfully using sumo-gui -c 'cfg_file.sumocfg' command in command…
mani varma
  • 31
  • 1
  • 4
1
vote
1 answer

How can i make the collisions in SUMO without the collider vehicle passing through the colliding vehicle

I need help regarding the following, How can i make the collisions in SUMO without the collider vehicle (i.e., the following vehicle) passing through the colliding vehicle (i.e, the vehicle in front) Right now when the vehicles collide in SUMO, it…
Mateen
  • 21
  • 2
1
vote
1 answer

Brew installation does not find PythonInterp even when set

I'm trying to install Sumo via Brew on Mac OS 12.4. I had it previously working, but recently uninstalled and it and now it doesn't seem to like being installed. When I run brew install sumo, the following is the output: Last 15 lines from…
bkoohy
  • 63
  • 6
1
vote
1 answer

Is there way to force SUMO to load vehicles every X seconds (time steps)

I am using planner to plan vehicle routes, i create plan every X seconds (usually 20), for that i need vehicles loaded before they enter network (e.g. from time 0 to 20). For now i accomplish this by parsing the routes.rou.xml file, but i would like…
Matyxus
  • 13
  • 2
1
vote
1 answer

Generating pedestrian flow with constant speed in SUMO

I am generating pedestrian flow using , and I want each pedestrian to walk in a constant speed while each pedestrian has a different speed than the other pedestrians. When I use the attribute speed in , each pedestrian walks in a…
aAlali
  • 15
  • 3
1
vote
1 answer

Customize Variable in vehcile

When using sumo for simulation experiment, I need to add my own parameters to the vehicle.There are Vehicle Type Parameter Defaults such as width and length.But how can i customize the parameter i want to the vehicle and get the parameter through a…
HHuuuu
  • 13
  • 3
1
vote
1 answer

Why the getSenderSpeed() is returning zero (always) in onBSM from veins-SUMO-omnet++?

I am using veins version 5.2, omnetpp5.7, Eclipse SUMO Version 1.4.0. I am trying to implement a simple platooning of 3 vehicles following this tutorial: http://cse.iitkgp.ac.in/~soumya/micro/t2-4.pdf I followed exactly the same steps and the…
1
vote
1 answer

Allow buses to stop on stops the second lap when using rerouting in SUMO

I have established a looped road with stops for buses to stop. Sadly, the buses only stop in the first lap and ignore the stops later on. Here are the code relevant parts: Route xml file:
1
vote
2 answers

How to reroute vehicles in a highway network in sumo?

I created a straight highway 6km long and 3 lanes in each way.It consists of number of segments connected to each other and there are almost 200 vehicles in the network . so,I made them to move in circles to keep them until the end of simulation…
Dalia Adly
  • 53
  • 6