How to access TraCI command interface from TraCIDemoRSU11p in Veins Car2X simulator?

后端 未结 2 969
梦谈多话
梦谈多话 2021-01-06 04:49

I want to access the command interface of TraCI from the application layer of RSU model in Veins Source for OMNet++. But I am unable to find so. Can anyone please help me do

2条回答
  •  时光取名叫无心
    2021-01-06 05:39

    in veins 4.4, i try to access TraCI command interface from TraCIDemoRSU11p. And finally I was able to access, i'm insert the following code in TraCIDemoRSU11p.h:

    #include "veins/modules/mobility/traci/TraCICommandInterface.h"
    [...]
    using Veins::TraCICommandInterface;
    [...]   
    protected:
            TraCICommandInterface* traci;
    

    then, you can access to TraCICommandInterface. Good Luck.

提交回复
热议问题