omnet++

RSU placement in veins/SUMO

风格不统一 提交于 2019-12-30 07:31:46
问题 If I know the coordinates at which RSUs will be placed in SUMO, How do I convert it to coordinates of omnet++? I know that SUMO has a different coordinate system than omnet. Should I convert it offline (before starting simulation) using the equations used in the internal function "traci2omnet"? I tried this but seems inaccurate. I tried also to create a junction at the position of the RSU in sumo, retrieve the location of this junction in omnet then place the RSU at the same coordinates. But

How to obtain a graph with the SNR average in Veins

主宰稳场 提交于 2019-12-25 08:35:34
问题 I want to plot a graph with the SNR average in Veins. Is this possible? If so, how could I do it? Thanks in advance. 回答1: Have you thought about recording a vector of the SINR values calculated during frame reception? If you make this an OMNeT++ Signal you could, at the same time, record both the individual samples and the average. 来源: https://stackoverflow.com/questions/39063470/how-to-obtain-a-graph-with-the-snr-average-in-veins

Omnet access method of another submodule error - no matching function for call to ‘check_and_cast(cModule*&)’

强颜欢笑 提交于 2019-12-25 03:32:07
问题 Error: no matching function for call to ‘check_and_cast(cModule*&)’ I am trying to use the current position from another module "mobility" with n class type MassMobility. cModule* parentmod = getParentModule(); cModule* mobilitymod = parentmod->getParentModule()->getSubmodule("mobility"); EV<<"Current module is "<<mobilitymod->getFullName() <<endl; MassMobility* mobility = check_and_cast<MassMobility *>(mobilitymod); mobility->getCurrentPosition(); I am getting compile time error :- no

OMNeT++: Changes is .cc class definition do not apply in simulation

爷,独闯天下 提交于 2019-12-25 03:19:12
问题 I have built a very simple network (similar to TicToc example). My problem is that when I change the .cc file for one of the defined classes, the changes do not apply when I run the simulation. Specifically I have changed the string name of a message, but with no effects. When I go back to the TicToc example and I perform a similar change in the .cc file, the change applies perfectly fine. I have the feeling that the problem lies on building the make files, etc. Is there any way to build the

Changing Traffic Light Colour ERROR in Omnet++/Veins, SUMO

混江龙づ霸主 提交于 2019-12-24 15:49:40
问题 I've tried using the solution presented in the following question (How can I get a traffic light that exists in sumo and change its phase in veins?), however, the following error appears about the command "myProgramGreenRed" not existing for tl "n7", when I try to change the program The traffic lights ids are n7, n8, and n9 and the piece of code that gives me trouble is : tl.setProgram("myProgramGreenRed"); tl.setPhaseIndex(1); and the tls.tls.xml file looks like the following <tls> <tlLogic

When to use send, sendDirect and sendDelayed in OMNet++?

时间秒杀一切 提交于 2019-12-24 15:27:11
问题 I am building my own compound module in omnet++ having multiple simple modules in it and having a layered architecture. But using only send() in inter-module communication (like the my App generator sends packet to below buffer using send()) seems to increase the total network latency. Also, I have seen other well supported models like the inet, mixim etc. uses sendDirect and send and sendDelayed alternatively. So, my question is, when to use send() , sendDirect() and sendDelayed() ? And do

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

大城市里の小女人 提交于 2019-12-24 14:43:00
问题 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 send Airframe11p message, i'm not getting where this message is being populated because in TraCIDemo11p.cc methods (onWSA, onWSM, handleSelfMsg, handlePositionUpdate) we are dealing with WSM message types and BaseWaveApplLayer::checkAndTrackPacket

omnet++ veins - asking about the value of RecievedBeacon and sentpacket

核能气质少年 提交于 2019-12-24 06:08:18
问题 I am working with Omnet++, veins. I use the code that exist here: Flooding.ned also flooding.cc exist in same link. I am working with flooding application, and I assigned sentbeacon true, and sent Data to false, to compute the probability of beacon delivery. all statistical are recorded in the mentioned project. for flooding.cc I changed onBeacon function to record the recievedbeacon void Flooding::onBeacon(WaveShortMessage *wsm) { // not used for this algorithm // statistics recording emit

aligning omnet++ clock with the system clock

淺唱寂寞╮ 提交于 2019-12-24 00:07:44
问题 I'm trying to integrate omnet++ with a 3d robot simulator, and this is roughly what I'm picturing. So There are a number of objects in the robot simulator, and they communicate with each other using 802.11 which will be simulated by omnet++. Each node in omnet++ corresponds to each object in the robot simulator, and an object's movement will be synchronized with the corresponding node in omnet++. But since omnet++ is a discrete event simulator, I need to deal with the clock mismatch problem

Is it possible to use RInside in omnet++/Veins project to benefit from rich R features

人走茶凉 提交于 2019-12-23 22:37:36
问题 I was learning R and came through this package called RInside which provides c++ classes to call an embedded R interpreter. I am able to run some examples given after configuring as per this blogpost and using provided makefile in Omnet++ eclipse IDE. How can we integrate this with say veins (veins already have auto generated makefiles in top directory and src directory)? Rinside needs GCC toolchain which i think is default in OMNeT++. From what I've learned so far, these are the options: