Questions tagged [traffic-simulation]

Traffic simulation are an approximate imitation of traffic flow behavior on any road network.

The components or features that are part of traffic simulations are i) Traffic behavior (homogeneous or heterogeneous), ii) traffic flow models (microscopic, macroscopic or mesoscopic), iii) traffic models (such as car following, lane changing) and iv) system (discrete or continuous).

Latest work on this topic is reported in

  • Ullah, Muhammad Rehmat, et al. "Vehicular traffic simulation software: A systematic comparative analysis." Pakistan Journal of Engineering and Technology 4.1 (2021): 66-78.
139 questions
0
votes
0 answers

How to program a Byzantine node?

I have a network simulator, and I need to program a Byzantine node class for that simulator. The purpose of these Byzantine nodes is to test the resiliency of an arbitrary networking protocol. Implementing random behaviour would be easy, but not…
Zaz
  • 46,476
  • 14
  • 84
  • 101
0
votes
0 answers

Single lane traffic intersection simulation on a given image (or created by matplotlib, cv2, etc)

I want to write python code that simulates single lane traffic intersection on an image that I have below. I don't necessarily need to do it with a given image, ones that are created by cv2, matplotlib, etc are fine as well. The cars start at the…
0
votes
0 answers

How to implement partial vehicle are networking and partial non-networking in Veins?

I want to simulate a traffic scenario with a mix of connected vehicles and human driven vehicles. How can I set up these two types of vehicles separately in Veins? Should I generate the vehicles in the sumo rou.xml file or in the Veins ini…
0
votes
2 answers

How do I convert Opendrive xodr file to net.xml for SUMO

Conversion has to be done with 'Netconvert' tool. I am facing error and cmd prompt quitting on negative speed error. How do I over come this issue? Is there a way I can ignore speed? Output should be with Net.xml format file. Thanks :)
MedaBoy
  • 3
  • 2
0
votes
1 answer

How to simulate a starting queue before opening times in a Simulation process with Simpy?

I am studying SimPy and I came across this interesting tutorial that allows to simulate a queue in a bank. I wanted to know if it is possible and how to create an initial queue. Let's assume that the bank opens at 09:00 but we have already 20…
0
votes
0 answers

Trouble with implementing SUMO CARLA co-simulation

As group project at uni we have been assigned a project, in which we have to implement the same simple traffic scenario, an ego vehicle making a U-turn in some light traffic, using both SUMO and CARLA simulators independently then as a…
0
votes
1 answer

How do you create rate schedules in AnyLogic for the Road Traffic Library?

I am using AnyLogic Personal Learning Edition on Ubuntu Linux, and I am making a road traffic simulation. I'd like to have a lot of traffic at the start of the simulation, and have it linearly decrease over time. So I tried to change the Arrivals…
0
votes
0 answers

Sumo departing vehicles on wrong lane

After specifying the departLane, the vehicle still ends up on the wrong path. How do I prevent lane changing so the vehicles stay on the correct path? When the cars try to get into the other lane they hold all the other cars up.
0
votes
2 answers

Weird error in SUMO simulation: automatic lane-shifting and vehicle absence

I am working with SUMO traffic simulation and I have 2 unexpected behaviors in my simulation. I declared 6 vehicles in three different types. However, one of the vehicles during simulation changed lanes and 2 vehicles were absent from my simulation.…
Nguyen Huy
  • 45
  • 9
0
votes
2 answers

SUMO with TraCI, getting OSError: [WinError 193] %1 is not a valid Win32 application

Trying to run the SUMO simulation using TraCI protocol: import os, sys if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("please declare environment variable…
0
votes
1 answer

how to intruduce a traffic Flows using real life data in Sumo

how can i use real life data to define traffic distribution in sumo I would like to build a real scenario using real road network and real traffic data. how can I use that data to generate traffic to be used in the scenario?
shi ft
  • 19
  • 1
0
votes
0 answers

Vuforia scaling problem because my traffic system needs bigger scalings to work properly

i wanna setup a unity scene using vuforia image targets showing a small part of a city and the traffic in this part. the problem is, that i wanna use a traffic system to simulate the traffic instead of hard animating the cars, but the traffic system…
0
votes
1 answer

CAR API Functions - AnyLogic

I am using the AnyLogic traffic library and need to use two functions listed here: CAR API, getDistanceDriven() and getLaneIndex(). But when I invoke them I get the error: The method getDistanceDriven() is undefined for the type Vehicle, The method…
Cesar
  • 13
  • 2
0
votes
1 answer

Put a delay on cars before they start running again after a stop or red light

I am making a car traffic simulation using python. I don't know how I will add a delay on the start of each car. I need to put a delay on the start of each car every time they move after a stop or red light. import random class Car: counter =…
Eneru
  • 1
0
votes
0 answers

How to make cars stop one behind the other in a car simulation with python?

thank you to whoever is taking time to help me. I'm trying to code a small car traffic simulation in python. But I'm stuck with the collision system. Indeed, I try to add a stop where the car would stop. The cars stop but one on top of the other and…