模拟开始后如何改变路段的速度?

How to change the speed of a road segment after simulation starts?

我想在模拟开始一段时间后更改路段的速度。例如,在时间步长 = 50 时,特定路段的速度应设置为 5 m/s,尽管其原始速度在指定时间步长之前是其他速度(例如 15 m/s)。

如有任何建议,我们将不胜感激。

SUMO's TraCI interface supports both changing the state of individual lanes or changing the state of entire edges。您需要做的就是发送所需的命令(0xc3 或 0xca)和所需的变量(两种情况下均为 0x41)。