Questions tagged [veins]

Veins is an open source framework for running vehicular network simulations.

Veins is an open source framework for running vehicular network simulations. It is based on two well-established simulators: OMNeT++, an event-based network simulator, and SUMO, a road traffic simulator. It extends these to offer a comprehensive suite of models for IVC simulation. See the official website for further information.

786 questions
1
vote
1 answer

How to get count of cars in specific range

In veins i'm trying to simulate a VANET scenario in which if road is blocked then after specific time the car broadcast a message including blocked roadId and count of vehicles around it's 100 meter. In TraCIDemo11p application when the car is…
Ahmad Ahsan
  • 187
  • 3
  • 18
1
vote
1 answer

How to get speed and angle for a certain node

i have been doing modification to TraCIDemo11p.cc file and i want to get the position , speed and angle for a certain node" node[8]". i know how to use getCurrentPosition() ,getCurrentSpeed() & getAngleRad() but i don't know how to refer (point) to…
Dalia Adly
  • 53
  • 6
1
vote
1 answer

Which file to extend for customized messages in veins? What is the purpose of AirFrame11p.msg?

I'm new to SUMO, Veins, OMNET++ and simulations with a bit background of networks. I have successfully setup environment and run veins 4.6 demo application. On google found that unlike RSU, Car modules are added on the fly. In demo example car nodes…
Ahmad Ahsan
  • 187
  • 3
  • 18
1
vote
1 answer

Trouble installing SUMO 0.30.0 in Ubuntu 16.04 from source code

I need to install SUMO 0.30.0 to be used with the VEINS_INET subproject in veins 4.6. I have tried following the instructions here and suggestions from forums but haven't had any luck being able to install sumo. I run ./configure (trying various…
pkitsos
  • 23
  • 7
1
vote
1 answer

Artery crashing repeatedly after around 134 s of Simulation Time

I am currently using Artery to simulate Traffic in a custom scenario. Being lazy, I just changed the required sumo-files and launchd.xml and references in the omnetpp.ini files so that I can run Artery using the run_example target. So far so…
M. Hardt
  • 67
  • 7
1
vote
1 answer

Calculating the distance between the current vehicle and the preceding vehicle

I have needed to calculate the distance between the current vehicle and the preceding vehicle,for each vehicle in a flow, running on an edge. While going through TraCI, I came across getLeader method which is supposed to return the Id of the leader…
user8561039
  • 115
  • 10
1
vote
0 answers

How to calculate throughput for each node.

I am working on a network congestion control algorithm and I would like to get the fairness, more specifically Jain's fairness index. However I need to get the throughput of each node or vehicle. I know the basic definition of throughput in…
LionsFan
  • 119
  • 1
  • 10
1
vote
0 answers

WSM size in VEINS Simulator

In Veins, the size of beacon is set to 336 bits (80 bits for header & 256 bits for beacon length). My questions are: a) Why the size of a beacon is set to 336 bits? b) Which fields actually give us the size of 336 bits ?
Kifayat Ullah
  • 47
  • 2
  • 6
1
vote
1 answer

Get steering angle information from Veins or SUMO into OMNET++

I am implementing a Kalman Filter based prediction model to estimate vehicular position in future time-steps. For accurate estimation I am thinking of using position, speed and steering angle as inputs. Currently, Veins provides position and speed…
Raashid
  • 149
  • 9
1
vote
1 answer

How coverage distance and interference distance are affected by each other

I need to know the difference between the maximum coverage distance of a RSU and the maximum interference distance and how they are affected by each other. I know the coverage distance is calculated from the path loss and similar models but don't…
Rehab11
  • 483
  • 2
  • 7
  • 16
1
vote
0 answers

Some Messages are lost in veins

I'm using VEINS4.4, OMNeT++ 5.0 and SUMO 0.25 My project involves vehicles to exchange 5 types of messages and # of vehicles is more than 200 , and i some of messages not received by others and when i traced the problem , i discovered that they lost…
user12345
  • 55
  • 9
1
vote
1 answer

Building Artery on Ubuntu fails

When I try to build Artery on Ubuntu 16.04. the following happens after invoking $ cmake --build /home/hardt/Veins/artery-master/build [ 23%] Linking CXX shared library libartery.so /usr/bin/ld: /usr/local/lib/libvanetza_btp.a(data_request.cpp.o):…
M. Hardt
  • 67
  • 7
1
vote
1 answer

The necessity of handleSelfMsg in BaseWaveApplLayer

I thought the handleSelfMsg in BaseWaveApplLayeris is same to tictoc self message which means a node sends message to itself but it looks not. So what is the necessity of handleSelfMsg in BaseWaveApplLayer?
user12345
  • 55
  • 9
1
vote
1 answer

what policy is based vehicle rerouting in case of accident?

I'm doing a scenario where there is 1 route at the beginning and then it splits into 3, then merges into 1 again. I'm stopping the car in the first lane, the second car stops also, the third one reroutes in the middle lane, the fourth goes to the…
1
vote
0 answers

Inconsistencies of the positions in a linear VEINS car flow

I am trying to monitor positions (X coordinate, it is horizontal) of vehicles in a linear flow. In TraCIDemo11p::handlePositionUpdate method, I added current vehicle position (by getCurrentPosition().x) and vehicle id (by getExternalId()) to message…
user8561039
  • 115
  • 10