我正在使用Veins 5.0,OMNet ++ 5.5.1,SUMO 1.2.0
我在模拟中收到以下警告:
WARN (PhyLayer80211p)mpsScenario.node[0].nic.phy80211p: Nic is not connected to any gates!
这是我的mpsScenario.ned文件的外观:
import org.car2x.veins.base.connectionManager.ConnectionManager;
import org.car2x.veins.base.modules.BaseWorldUtility;
import org.car2x.veins.modules.mobility.traci.TraCIScenarioManager*;
import org.car2x.veins.modules.obstacle.ObstacleControl;
import org.car2x.veins.modules.world.annotations.AnnotationManager;
import org.car2x.veins.nodes.Car;
import org.car2x.veins.mps.traffic.BaseTrafficManager;
network mpsScenario {
parameters:
double playgroundSizeX @unit(m); // x size of the area the nodes are in (in meters)
double playgroundSizeY @unit(m); // y size of the area the nodes are in (in meters)
double playgroundSizeZ @unit(m); // z size of the area the nodes are in (in meters)
string trafficType;
@display("bgb=$playgroundSizeX,$playgroundSizeY");
@figure[description](type=text; pos=700,30; font=,,bold;
text="Aerolink(TM) Misbehavior Protection System Simulation");
submodules:
obstacles: ObstacleControl {
@display("p=240,50");
}
annotations: AnnotationManager {
@display("p=260,50");
}
connectionManager: ConnectionManager {
parameters:
@display("p=150,0;i=abstract/multicast");
}
world: BaseWorldUtility {
parameters:
playgroundSizeX = playgroundSizeX;
playgroundSizeY = playgroundSizeY;
playgroundSizeZ = playgroundSizeZ;
@display("p=30,0;i=misc/globe");
}
manager: TraCIScenarioManagerForker {
parameters:
@display("p=115,60");
}
trafficManager: <trafficType> like BaseTrafficManager {
@display("p=115,0");
}
node[0]: Car {
}
connections allowunconnected:
}
基本上是具有一个自定义trafficManager
模块的默认文件。另外,manager
指向TraCIScenarioManagerForker
。
Car.ned模块与VEINS 5.0提供的默认模块相同。
由于几乎所有内容都是默认设置,所以我不明白为什么收到上述警告。由于此警告,一旦车辆收到新的BSM,我将收到bad_alloc错误。
Car.ned
中定义的复合模块包括一个特殊的移动性模块(TraCIMobility
),它要求这些模块由TraCIScenarioManager
实例化。
您的mpsScenario.ned
实例化了Car.ned
本身定义的类型的模块-这将无法工作。
对于与Car.ned
非常相似但设计为从另一个.ned
文件实例化的默认复合模块,请参见RSU.ned
模块类型。