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);
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.
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
.
- Is there a way to abort already queued lane changes?
- Or is this a bug in SuMO?
- Or am I doing it completely wrong?