为什么使用静脉_launchd 和不使用静脉_launchd 时 SUMO 输出不同?

发布于 2025-01-13 18:44:32 字数 2223 浏览 5 评论 0原文

首先,我使用vevines_launchd连接omnet和sumo,命令行是“D:/example_project/veins-5.1/veins-veins-5.1/sumo-launchd.py -vv -c 'D:/Program Files (x86)/ Eclipse/bin/sumo.exe'“ 输出车道数据如下所示: 输入图片description here

但我想手动运行 SUMO,所以我将 TraCIScenarioManagerLaunchd 修改为 TraCIScenarioManager 并使用命令行“sumo -c llcd.sumocfg --remote-port 9999”,然后等待 omnet 连接。这种方法的灵感来自于这个答案 有没有办法将多个TraCI模块连接到OMNet++/veins模拟?

但是当我这样运行时,输出结果是这样的: 输入图片此处描述

为什么模拟结果会产生如此巨大的差异?我没有更改任何其他参数,并且 sumo 配置文件是相同的。

omn​​etpp.ini 中的一些参数设置:

##########################################################
#            TraCIScenarioManager parameters             #
##########################################################
*.manager.updateInterval = 1s
*.manager.host = "localhost"
*.manager.port = 9999
*.manager.autoShutdown = false
*.manager.launchConfig = xmldoc("llcd.launchd.xml")

sumo.config:

<configuration> 
    <input>
        <net-file value="D:\FTT\sumo_test\llcd\llcd.net.xml"/>
        <route-files value="D:\FTT\sumo_test\llcd\llcd.rou.xml"/>
        <additional-files value="D:\FTT\sumo_test\llcd\llcd.add.xml"/>
    </input>    
    <output>
        <lanechange-output value="D:\FTT\sumo_test\llcd\llcd.lanechange.xml"/>  
        <summary-output value="D:\FTT\sumo_test\llcd\output_sumo.xml"/>
    </output>       
    <time>
        <begin value="0"/>
        <end value="3600"/>
    </time>     
    <processing>
        <time-to-teleport value="-1"/>
    </processing>  
    <report>
        <no-duration-log value="true"/>
        <no-step-log value="true"/>
        <no-warnings value="true"/>
    </report>
</configuration>

如果有人可以提供一些见解?先感谢您!

First, I use veins_launchd to conect omnet and sumo, the command line is "D:/example_project/veins-5.1/veins-veins-5.1/sumo-launchd.py -vv -c 'D:/Program Files (x86)/Eclipse/bin/sumo.exe' "
The ouput lane data is shown below:
enter image description here

But I want to run SUMO manually, so I modify TraCIScenarioManagerLaunchd to TraCIScenarioManager and use the command line "sumo -c llcd.sumocfg --remote-port 9999", and then waiting for omnet to connected. This approach is inspired by this answer Is there a way to connect multiple TraCI modules to the OMNet++/veins simulation?

But when I run this way, the output result is like this:
enter image description here

Why do simulation results make such a huge difference? I didn't change any other parameters, and the sumo configure file is the same.

some of the parameter setting in omnetpp.ini:

##########################################################
#            TraCIScenarioManager parameters             #
##########################################################
*.manager.updateInterval = 1s
*.manager.host = "localhost"
*.manager.port = 9999
*.manager.autoShutdown = false
*.manager.launchConfig = xmldoc("llcd.launchd.xml")

sumo.config:

<configuration> 
    <input>
        <net-file value="D:\FTT\sumo_test\llcd\llcd.net.xml"/>
        <route-files value="D:\FTT\sumo_test\llcd\llcd.rou.xml"/>
        <additional-files value="D:\FTT\sumo_test\llcd\llcd.add.xml"/>
    </input>    
    <output>
        <lanechange-output value="D:\FTT\sumo_test\llcd\llcd.lanechange.xml"/>  
        <summary-output value="D:\FTT\sumo_test\llcd\output_sumo.xml"/>
    </output>       
    <time>
        <begin value="0"/>
        <end value="3600"/>
    </time>     
    <processing>
        <time-to-teleport value="-1"/>
    </processing>  
    <report>
        <no-duration-log value="true"/>
        <no-step-log value="true"/>
        <no-warnings value="true"/>
    </report>
</configuration>

If anyone can give some insights? Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒绊 2025-01-20 18:44:32

我发现了问题所在。我发现veves_launchd会通过添加来更改SUMO的配置文件

<random_number>
    <random value="false"/>
    <seed value="0"/>
</random_number>

I figured out the problem. I found veins_launchd will change the configure file of SUMO by adding

<random_number>
    <random value="false"/>
    <seed value="0"/>
</random_number>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文