简体   繁体   English

通过VEINS集成OMNeT ++和SUMO

[英]Integration of OMNeT++ and SUMO through VEINS

I made a scenario in SUMO and also have a runner.py file in order to control the traffic in sumo. 我在SUMO中创建了一个场景,并且也有一个Runner.py文件,以便控制相扑中的流量。 When I use a normal scenario without runner fil, everything is ok but I need to get the movement after using runner file. 当我使用不带跑步者fil的正常情况时,一切正常,但是我需要在使用跑步者文件后进行移动。 Do you know how Can I get the output after using this runner file in omnet++. 您知道在omnet ++中使用此运行器文件后如何获得输出。 When I call the runner.py file it opens the sumo and I can see the movement but when I link sumo and omnet++, since this file is not called, therefore, I cannot get the real movement in omnet++. 当我调用Runner.py文件时,它将打开相扑,并且可以看到运动,但是当我将相扑和omnet ++链接时,由于未调用此文件,因此,我无法在omnet ++中获得真正的运动。 And how can i see both Omnet++ simulation and sumo-gui dialog box at a time ? 我如何一次查看Omnet ++模拟和sumo-gui对话框? could someone help me out with this ! 有人可以帮我这个忙! Thanks in advance. 提前致谢。

SUMO currently has no feature that supports controlling a running instance of SUMO from two programs. SUMO当前没有支持从两个程序控制SUMO的运行实例的功能。 In your case, both OMNeT++ and your runner.py would try to control, eg, how fast the simulation runs. 在您的情况下,OMNeT ++和您的Runner.py都将尝试控制(例如)模拟运行的速度。

The easiest solution would be to move functionality from your runner.py into a new OMNeT++ module that uses Veins' modules to influence the simulation. 最简单的解决方案是将功能从Runner.py转移到新的OMNeT ++模块中,该模块使用Veins的模块来影响模拟。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM