RSU放置在静脉/SUMO中 [英] RSU placement in veins/SUMO

查看:197
本文介绍了RSU放置在静脉/SUMO中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我知道SUMO中将放置RSU的坐标,如何将其转换为omnet ++的坐标?

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

我知道SUMO的坐标系与omnet的坐标系不同.我是否应该使用内部函数"traci2omnet"中使用的方程式离线转换(开始模拟之前)?我试过了,但似乎不正确.

I know that SUMO has a different coordinate system than omnet. Should I convert it offline (before starting simulation) using the equations used in the internal function "traci2omnet"? I tried this but seems inaccurate.

我还尝试在相扑中RSU的位置处创建一个结点,在omnet中检索该结点的位置,然后将RSU放在相同的坐标处.但是有可能在运行simulatin时(例如在初始化期间)执行这种情况吗? 有谁知道最好的解决方案?

I tried also to create a junction at the position of the RSU in sumo, retrieve the location of this junction in omnet then place the RSU at the same coordinates. But is it possible to do such scenario while running the simulatin(during initialization for example)? Does any one know the best solution?

推荐答案

SUMO和OMNeT ++使用不同的坐标系,这就是为什么使用traci2omnet之类的辅助函数将点从一个坐标系转换为另一个坐标系的原因.在Veins 4.6中,在运行模拟的同时,在线确定用于此转换的最佳参数.从好的方面来说,对于相同的情况,这些参数将始终相同.

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.

因此,一种简单的前进方法是在模拟中创建汽车后立即更改任何汽车的应用程序以输出坐标转换的结果.然后,此转换的结果可用作RSU的位置.只要方案保持不变,位置将是正确的.

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.

一种更复杂(但更可靠)的解决方案是在OMNeT ++仿真中动态创建RSU模块(类似于

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.

这篇关于RSU放置在静脉/SUMO中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆