Thank for your help
And I already set the bit 8 and 9 to 00 in my code, and it doesn’t work.
So no matter which mode I chose, it will adapt speed to do lanechange ?
and I sove this problem by set the speed every step, it work
😊
发送自 Windows 10 版邮件应用
Hello,
By default, the changeLane command is handled with urgency, that means vehicles will adapt their speed to fulfil the change request as soon as possible.
You can influence this with the setLaneChangeMode command (bits 8 and 9:
http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#lane_change_mode_.280xb6.29
regards,
Jakob
2018-04-01 14:23 GMT+02:00 杜 伟强 <iShadowPrince@xxxxxxxxxxx>:
Hello:
I build a simple network with two edge and every edge has three lanes.
And I add two same vehicle except there depart lane into network.
When I use traci command to force one vehicle change lane, it will brake and change lane .
So any one can tell me why? And how to avoid it.
The python code used to change lane is here:
class
mylistener(traci.StepListener):
traci.vehicle.setLaneChangeMode("veh0",0)
traci.vehicle.setSpeedMode("veh0",0)
traci.vehicle.changeLane('veh0',
1,
3)
and I took a photo to illustrate the phenomenon

Thank you
😊
发送自 Windows 10
版邮件应用
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user