SUMO sim时间和实时时间差

SUMO sim time and real time difference

我使用了traci.simulation.getTime来获取SUMO的当前模拟时间。 但是,这个时间比实时运行得更快。

例如,当模拟时间从 0-100 增长时,实时仅从 0-20 增长。

如何让SUMO模拟时间和真实时间一致?

我尝试了 --step-length = 1,但这没有用

--step-length 属性 是一个以秒为单位的值,描述了一个模拟步骤的长度。如果您在此处输入的数字越大,车辆的反应时间就越短,但您的模拟运行速度可能会更快。 对于实时问题,您可以查看 sumo-user mailinglist。我认为邮件对您的问题给出了很好的答案:

the current limit to the real time factor is the speed of your computer. If you want to slow the GUI down you can change the delay value (which is measured in milliseconds) so a value of 100 would add 100ms to every simulation step (if you simulation is small and runs with the default step length of 1s this means factor 10). If you want to speed it up, run without GUI or buy a faster computer ;-).

要查看您的模拟与挂钟时间的接近程度,您可以查看 SUMO 的 generated output。您正在寻找的东西叫做 实时因素