Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] a strange action when change lane

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):

    def step(self, s=0):

        print(s)

        if s == 2000:

            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 邮件应用

 


Back to the top