How to get RSU coordinate from TraCIDem11p.cc?

前端 未结 2 1996
刺人心
刺人心 2021-02-11 10:51

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

2条回答
  •  你的背包
    2021-02-11 11:25

    Additionally, If you need a dynamic way to get the RSU coordinates. Mainly if you have a scenario with more than one RSU, you can use "findSubModule":

    BaseMobility *baseMob;
    baseMob = FindModule::findSubModule(getParentModule());
    Coord rsuCoord = baseMob->getCurrentPosition();
    

    Hope this can help someone.

    Cheers.

提交回复
热议问题