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

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

 

发件人: Jakob Erdmann
发送时间: 201843 16:41
收件人: Sumo project User discussions
主题: 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

      cid:image002.png@01D3C9F7.46A4D8F0

 

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