omnet++

Cannot create executable

試著忘記壹切 提交于 2020-01-07 01:23:53
问题 I had a project running pretty neat until I had to add a few features. The features was a few lines of code and a new .msg definition file. After the additions when build the program shows this message: make MODE=debug CONFIGNAME=gcc-debug all /bin/sh: -c: line 0: syntax error near unexpected token `(' /bin/sh: -c: line 0: `mkdir -p "out/gcc-debug/" && echo "-g -Wall -I/usr/include -fno-stack-protector -DHAVE_PCAP -DXMLPARSER=libxml -DWITH_PARSIM -DWITH_NETBUILDER -I"C:/Program Files (x86)

The following NED types could not be fully resolved, due to a missing base type or interface

删除回忆录丶 提交于 2020-01-06 17:47:11
问题 I want to run my project through Cmdenv. In the project's omnetpp.ini file I specialized ned-path as: ned-path = /omnetpp-4.6/samples/VDLM4net;/omnetpp-4.6/samples/MiXiM/src/base;/omnetpp-4.6/samples/MiXiM/src/modules And when I'm trying to use Cmdenv there is an error:error in console I'm using omnetpp-4.6 on Windows with standalone project referenced to MiXiM-2.3 回答1: I solved my problem. At first, in .ini file I specified all possible ned paths than potentially can be used in project. In

Connect, repetitively, nodes based at their euclidean distance in omnet++

ⅰ亾dé卋堺 提交于 2020-01-06 08:33:46
问题 I have created a random topology in ned file. In that topology, every node has the same radian connection distance. I want to make connections for every node that is in the rc distance. This is as far I have get: network ranTop { parameters: int n = 100; int rc = 5; volatile int posX = intuniform (0,100); volatile int posY = intuniform (0,100); submodules: node[n] : Node { parameters: @display("p=$posX,$posY"); } } 回答1: You should have (non volatile!) posX , posY parameter for each node and

OMNeT++ issue with linking INET

淺唱寂寞╮ 提交于 2020-01-06 07:28:54
问题 During the build of my new OMNeT++ project I have encountered following error: out/clang-debug//myUdp.o:(.rdata[_ZTI5myUdp]+0x10): undefined reference to 'typeinfo for inet::ApplicationBase' I have already configured INET reference (Project "myUdp" -> Properties -> Project reference -> inet checkbox selected) This is INET Makemake configuration: Target tab and Compile tab This is Makemake configuration of my project (myUdp): Compile tab and Link tab And the C++ code: MyUdp.cc #include <inet

How to use ManetRouter.ned with veins

扶醉桌前 提交于 2020-01-03 05:56:01
问题 I want to use ManetRouter.ned(https://github.com/inet-framework/inet/blob/master/src/inet/node/inet/ManetRouter.ned) in veins. How can i use it? I mean is there a way to use inet 4.0.0 files in veins as veins is compatable with inet 3.6.4 only? Please help. 回答1: Veins master @bfdfc10 is compatible with INET 4.0.0. Note, however, that linking against INET 4.0.0 on Windows appears to be impossible. Issue #379 of the INET framework is tracking this bug. You might have to wait for the next INET

How to use ManetRouter.ned with veins

对着背影说爱祢 提交于 2020-01-03 05:55:05
问题 I want to use ManetRouter.ned(https://github.com/inet-framework/inet/blob/master/src/inet/node/inet/ManetRouter.ned) in veins. How can i use it? I mean is there a way to use inet 4.0.0 files in veins as veins is compatable with inet 3.6.4 only? Please help. 回答1: Veins master @bfdfc10 is compatible with INET 4.0.0. Note, however, that linking against INET 4.0.0 on Windows appears to be impossible. Issue #379 of the INET framework is tracking this bug. You might have to wait for the next INET

Library support for the ISO c++ 2011 standard in omnet

我只是一个虾纸丫 提交于 2020-01-03 05:46:12
问题 I am using OMNET 4.4. When OMNET compiles it says that this file requires compiler and library support for the ISO c++ 2011 standard. This support is currently experimental and must be enabled with -std=c++11 or -gnu=c++11 compiler options. Also following error appears: /veins/modules/application/traci/TraCITestApp.h:78:36: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 [enabled by default] I am using windows 10 and I could not find solution to it

About vehicle number in VEINS

邮差的信 提交于 2020-01-01 19:51:36
问题 I modified the erlagen.rou.xml using duarouter to get the random routes for the vehicles. It looks like this: <vehicle id="0" depart="0.00"><route edges="31401017#0 4006688#0 4006688#1 4006688#2 4006688#3 4006688#4 29900561#0 29900561#1 32270595 33174302#0 33174302#1 4686970#0 4686970#1 122161381 30350448 30350449 4047309 30751813 -35842306#1 -35842306#0 -4900741 -4900739#2 -4900739#1"/> </vehicle> <vehicle id="1" depart="1.00"> <route edges="19796637 122161381 30350448 8364476 30350450#0

How to get RSU coordinate from TraCIDem11p.cc?

本小妞迷上赌 提交于 2020-01-01 04:01:06
问题 I was wondering how can I start writing a program able to send message when a vehicle is close to the RSU. First, I still get confused by some definitions, but, little by little, I think I will learn veins. module = simulation.getModuleByPath("rsu[0]"); c = MobilityAccess().get(module)->getCurrentPosition(); I found this part of code in this thread: Getting the location of two different modules But still have some questions: 1) Module is what kind of object? I would guess TraCIMobility* 2)

RSU placement in veins/SUMO

孤者浪人 提交于 2019-12-30 07:32:10
问题 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