SUMO 中的分割边必须在 traci setRoute 中指定?

Split edges in SUMO must be specified in traci setRoute?

我有一个给定的网络,我想为每个边缘设置不同的速度限制。 我使用这里提到的相扑功能 https://sumo.dlr.de/docs/Networks/PlainXML.html#road_segment_refining

因此,如果网络的道路 e1 通向 e2。我在 pos 100 拆分 e1 现在我有一个网络 e1,e1.100,e2

目前我在设置路线 [e1,e2] 时遇到问题, traci.exceptions.TraCIException: 路由替换失败
我想使用 traci setRoute 但不指示 e1.100。可能吗?

不,不直接。该路线始终需要包含汽车将要行驶的所有边(交叉路口内部边除外)。但是,如果只有一条路线(或所需路线是最快的)到达目的地,您可以事先致电 traci.simulation.findRoute 或使用 traci.vehicle.setTarget。