veins中的ChannelControl的引入,需要什么.h文件
时间: 2024-02-17 17:59:45 浏览: 65
在Veins中使用ChannelControl模块,需要在源代码中引入以下头文件:
```c++
#include "veins/modules/application/ieee80211p/DemoBaseApplLayer.h"
#include "veins/modules/mobility/traci/TraCIMobility.h"
#include "veins/modules/application/ieee80211p/ChannelAccess.h"
#include "veins/modules/application/ieee80211p/WaveShortMessage.h"
#include "veins/modules/application/ieee80211p/BaseWaveApplLayer.h"
#include "veins/modules/phy/Decider80211p.h"
#include "veins/modules/phy/Packet80211p_m.h"
#include "veins/modules/application/ieee80211p/DemoBaseApplLayer.h"
```
其中,DemoBaseApplLayer.h、TraCIMobility.h、ChannelAccess.h、WaveShortMessage.h、BaseWaveApplLayer.h、Decider80211p.h、Packet80211p_m.h这些头文件是Veins中的其他模块所需要的头文件,如果您的程序中已经包含了这些头文件,则不必重复引入。
阅读全文