sumo

Communication between a car and a pedestrian in Veins

谁说胖子不能爱 提交于 2019-12-11 04:13:11
问题 I would like to know how could I create a wireless communication between a car and a pedestrian (V2P) in Veins? Thanks a for your attention. 回答1: Veins allows to specify a module for a vehicle type it gets from SuMO: Veins Multiple Applications in multiples Vehicle types You have to setup your network and pedestrians according to the SuMO wiki and then configure the corresponding module in Veins. 来源: https://stackoverflow.com/questions/51597697/communication-between-a-car-and-a-pedestrian-in

How to get Coordinates of each vehicle in VEINS?

拟墨画扇 提交于 2019-12-10 12:04:37
问题 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(). The Problem is when the veh0 returns its coordinate at the same time there is coordinate sent by veh1 which is very small. How can I get the position of both the vehicles at the given time and find the distance between them? void TraCIDemo11p ::

Implement an NS2 LTE simulation with sumo and Ad-hoc network

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 11:47:13
问题 Hello everyone I want to ask for your valuable help to see if it is possible to add a SUMO scenario I have into NS2 to be able to simulate an ad-hoc network between cars and also allowed them to communicate with an LTE radio base station (eNodeB). I already have SUMO and NS2 with the LTE patch running, I was able to add the LTE features thanks to an answer given by Knud Larsen in this post: invalid command name "Queue/LTEQueue" 回答1: Ref. your note "7" https://drive.google.com/drive/folders

Dynamical transmission range in the ieee802.11p module

会有一股神秘感。 提交于 2019-12-10 00:18:17
问题 I'm a MRs student , i use sumo 0.25.0 and veins 4.4 within omnet++ 5.0 .I'm working in the IEEE0802.11p module. Including my proposition i will use a formula that change the transmission range calculator into dynamical calculator which communicate with the simulation to get information from it like (mean speed, average distance from front-bumper to front-bumper between vehicles ...). here is the transmission range formula that I will use and the Article containing the formula my question is

speed of vechile in veins increases slowly

戏子无情 提交于 2019-12-08 12:45:29
问题 I'm using veins 4.4, OMNeT++ 5.0 and SuMO 0.25. I have set vehicle speed to 0 to stop them by traciVehicle->setSpeed(0) then after certain case i set them to 20 by traciVehicle->setSpeed(20) to cross the intersection but for no reason it increases slowly till its time finish , so can i make it faster ??? 回答1: A vehicle in SuMO has the speedMode parameter which determines how it should behave for instance in terms of acceleration and deceleration. By default this parameters is set to consider

How to get count of cars in specific range

时光总嘲笑我的痴心妄想 提交于 2019-12-08 06:09:02
问题 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 stopped for longer than 10 seconds it changes the node color to red (to show an accident) and sends a message out to other cars containing the blocked road id, all this is done in handlePositionUpdate mehtod: findHost()->getDisplayString().updateWith("r

Pedestrian Simulation in veins (omnet++/sumo)

痴心易碎 提交于 2019-12-08 05:09:58
问题 I'm trying to run a pedestrian simulation from sumo in omnet++. To keep it easy (i am a beginner) I decided to use the Erlangen example provided with veins and extend it with a couple of pedestrians. I added the pedestrians in sumo and ran it. It works perfectly fine: You can see the pedestrians and cars in this picture Next I was trying to run the whole thing in omnet++. I also managed to do that but the pedestrians were not shown. Just the cars. I read these two topics: Communication

Sending a message when a vehicle leaves the simulation

半世苍凉 提交于 2019-12-08 03:52:56
问题 I use OMNeT++-4.6, sumo-0.22.0 and Veins-4a2. In my simulation, each node creates a message, stores it in its buffer and after some delay it sends all its messages. I did two timers to specify the delay of created and sent messages. So, the message sent may be receive by an other node or by the destination which is the RSU. My simulation ends when all nodes reach their destination according to the indicating path in .rou.xml file. Every node leaves the simulation at a specific time. The goal

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

╄→尐↘猪︶ㄣ 提交于 2019-12-08 02:15:31
问题 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 compared our simulation result (RSSI vs Distance) with the VeReMi dataset and they look quite different. Can you help us to explain how RSSI is calculated and whether our result is normal? In our application, we obtain the distance and rssi value by

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

核能气质少年 提交于 2019-12-06 06:04:21
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 compared our simulation result (RSSI vs Distance) with the VeReMi dataset and they look quite different. Can you help us to explain how RSSI is calculated and whether our result is normal? In our application, we obtain the distance and rssi value by auto distance = sender.getPosition().distance(receiverPos); auto senderRSSI = sender.getRssi(); In the