RSU placement in veins/SUMO

故事扮演 提交于 2019-12-01 00:41:21

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.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!