I am trying to build a simple Veins scenario where vehicles send there information to a RSU that serves a specific junction. I am not sure how to determine the RSU location.
In the omnetpp.ini, I specified the RSU location as the Omnetpp junction location (traci->junction("J1").getPosition()
):
*.rsu[0].mobility.x = 102.59
*.rsu[0].mobility.y = 58.85
*.rsu[0].mobility.z = 3
However this location is not reflected in the simulation kernel and the coordination of the RSU (i.e., this->curPosition.info()
) is still (0,0,0).
Note, the SUMO Junction location is (-27.84,11.34).
If the RSU location set by the Omnet Junction location (traci->junction("J1").getPosition()
), the rsu in the simulation GUI is far from the Vehicle that are traveling the junctions as shown in the following image:
Also, Is there a way to determine the RSU location automatically?