RSU placement in veins/SUMO

后端 未结 1 1618

If I know the coordinates at which RSUs will be placed in SUMO, How do I convert it to coordinates of omnet++?

I know that SUMO has a different coordinate system tha

1条回答
  •  别那么骄傲
    2021-01-07 04:07

    SUMO and OMNeT++ use different coordinate systems, which is why helper functions like traci2omnet are used to transform points from one coordinate system into the other. In Veins 4.6, the best parameters for this transformation are determined online, while the simulation is running. On the plus side, for the same scenario these parameters will always be the same.

    Thus, an easy way forward is to alter any car's application to output the results of a coordinate transformation as soon as it is created in the simulation. The result of this conversion can then be used as the positions for RSUs. As long as the scenario remains unmodified, the positions will be correct.

    A more involved (but more robust) solution is to create RSUs modules in the OMNeT++ simulation on the fly (much like car modules are created on the fly), based on objects that exist in the SUMO simulation. Such objects might be SUMO "point of interest" objects. In this solution, as soon as the OMNeT++ simulation connects to SUMO it could query the position of all points of interest, transform the positions to the right coordinate system, and instantiate one RSU at each position.

    0 讨论(0)
提交回复
热议问题