Skip to main content

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

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

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

 


_______________________________________________
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



Back to the top