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) How about simulation
? I have no idea.
So, could anyone please first explain to me how to get RSU coordinates in the TraCIDemo11p.cc?
Thanks!