本文介绍了如何禁用SuMO中的车道更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 TraCI呼叫将车辆的车道变更模式设置为0以禁用所有车道变更:

I am using a TraCI call to set the lane change mode of a vehicle to 0 to disable all lane changing:

TraCICommandInterface::setLaneChangeMode(0b000000000000);

但是,车辆此后仍会改变车道.我还尝试了 Wiki 或在这篇文章.

However, the vehicle still does a lane change afterwards. I also tried 256 (i.e. 0b000100000000 and 512 (i.e. 0b001000000000) as indicated in the wiki or in this post.

似乎执行的车道变更动作已在较早的队列中(即在TraCI呼叫之前)排队,因为车辆正在闪烁其转向灯,并且由于车道阻塞而无法执行.在目标车道空闲后,即使我将车道变换模式设置为0,车辆也会执行车道变换.

It seems that the executed lane change action was queued earlier (i.e. before the TraCI call), because the vehicle is flashing its turn light, and could not be executed due to a blocked lane. After the target lane is free, the vehicle executes the lane change, even though I set the lane change mode to 0.

  • 有没有办法中止已经排队的车道变更?
  • 这是SuMO中的错误吗?
  • 还是我做错了?

推荐答案

它可以通过设置setLaneChangeMode(0b000000000000)来工作例如traci.vehicle.setLaneChangeMode("rear", 0b001000000000)

it works by setting setLaneChangeMode(0b000000000000)for exampletraci.vehicle.setLaneChangeMode("rear", 0b001000000000)

这篇关于如何禁用SuMO中的车道更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-03 15:01