sumo icon indicating copy to clipboard operation
sumo copied to clipboard

How to avoid automatic lane change of vehicles

Open prasuka4 opened this issue 1 year ago • 3 comments

Hello, I have tried to make simulations to run vehicles one behind other. After some time i have made 1st vehicle to make lane change but and i have set "traci.vehicle.setLaneChangeMode(vehID, 256)" for other vehicle so that it will not make lane change. I have also tried to provide "lcStrategic="0" lcSpeedGain="0" lcKeepRight="0"" this info to the vehicle to avoid lane change. Even though we provide this option still vehicle is making automatic lane change could you please let me know how to avoid this.

SUMO-version: V1_20 operating system: Windows

prasuka4 avatar Oct 14 '24 04:10 prasuka4

Here you can find a test scenario for the given TraCI command traci.vehicle.setLaneChangeMode(vehID, 256). In case you still don't find the reason of your problems, please attach a sample scenario to this issue.

m-kro avatar Oct 14 '24 07:10 m-kro

use lanechange-output to check the recorded reason for the lane change and report back.

namdre avatar Oct 14 '24 07:10 namdre

Hello Together, Thanks for the response here is the sample map and simulation. please do have a look and let me know if i can avoid the lane change behaviour of second vehicle present. I have also attached the output of lanechange-o DLR_Sample.zip utput for your reference.

prasuka4 avatar Oct 15 '24 17:10 prasuka4

Hello Together, Could you please provide any solution to this issue. Awaiting for your reply

Thanks Prashanth

prasuka4 avatar Oct 20 '24 15:10 prasuka4

Fall holidays are starting in Germany today. Don't expect a response within the next 2 weeks, please.

namdre avatar Oct 21 '24 02:10 namdre

@prasuka4 You use simpla which triggers TraCI lane change commands to let the follower vehicle follow the platoon leader. TraCI commands are considered "external" commands and thus are not forbidden through the lane change mode settings. So if you either remove simpla or configure it that these vehicles won't form a platoon, the second one will not follow the leader. What do you exactly want to achieve ?

m-kro avatar Oct 21 '24 07:10 m-kro

Hello Thanks for your response

I was trying to make lane change of the leader vehicle so that the platoon will get temporarily disconnected after the lane change and second vehicle travel in the same lane with the given speed. This was my intention

On Mon, 21 Oct 2024 at 12:46 PM, Mirko Barthauer @.***> wrote:

@prasuka4 https://github.com/prasuka4 You use simpla https://sumo.dlr.de/docs/Simpla.html#intro which triggers TraCI lane change commands to let the follower vehicle follow the platoon leader. TraCI commands are considered "external" commands and thus are not forbidden through the lane change mode settings. So if you either remove simpla or configure it that these vehicles won't form a platoon, the second one will not follow the leader. What do you exactly want to achieve ?

— Reply to this email directly, view it on GitHub https://github.com/eclipse-sumo/sumo/issues/15585#issuecomment-2425816963, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALUX37YUCC3PQSRS6SK33S3Z4SS3RAVCNFSM6AAAAABP4D2SOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVHAYTMOJWGM . You are receiving this because you were mentioned.Message ID: @.***>

prasuka4 avatar Oct 21 '24 07:10 prasuka4

Currently, you cannot form or split platoons controlled by simpla explicitly. They split when the vehicles' routes take different turns or when the follower cannot keep up with the speed of the leader.

m-kro avatar Oct 21 '24 07:10 m-kro