Thank you for your help! It's working now. But I have a small issue; after the vehicle changes the lane, it doesn't stay on the center of the lane but keeps on driving on the right side of the lane as shown in the image. I'm guessing this is due to the 'changeSublane' command still being in effect.
Is there any way that I can make the red vehicle in the attached image drive on the center of the lane? I've read your response to earlier post where you suggested latAlignment="center" and lcLaneDiscipline="1" but this isn't working for me for some reason. Any help would be greatly appreciated! Thank you! ________________________________ From: [email protected] <[email protected]> on behalf of Jakob Erdmann <[email protected]> Sent: Friday, January 29, 2021 4:38 AM To: Sumo project User discussions <[email protected]> Subject: Re: [sumo-user] traci.vehicle.changeSublane giving a warning 1) you first need to activate the sublane model using option --lateral-resoluton (the lane changing model SL2015 will then be used automatically) 2) by setting lcAssertive to a very high value you can make the vehicle use gaps that are only slightly bigger than the vehicle itself. To force collisions (change on overlap) you need to set laneChangeMode: https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#lane_change_mode_0xb6<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsumo.dlr.de%2Fdocs%2FTraCI%2FChange_Vehicle_State.html%23lane_change_mode_0xb6&data=04%7C01%7Cjbae42%40gatech.edu%7C285322057cc04546058b08d8c439b61e%7C482198bbae7b4b258b7a6d7f32faa083%7C0%7C0%7C637475099446747792%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=k8n1j5L50y7e%2B0wgyDmun40%2BzxXd8UuLCbP2P3KHiII%3D&reserved=0> regards, Jakob Am Do., 28. Jan. 2021 um 19:20 Uhr schrieb Bae, Jong In <[email protected]<mailto:[email protected]>>: Hello, I'm trying to learn how to use traci sublane command. I had two questions.. First, I'm trying to achieve a simple task; make the red vehicle in the attached image to do a sublane change between the two blue vehicles. I changed the lane changing model to 'SL2015' but the command is giving me an error "Warning: Lane change model did not provide a reason for changing (state=14337, time=4.40)" I got the same warning when I removed the two blue vehicles and made the red vehicle do the sublane change into an empty lane. 1. Do I need to specify a reason for changing? If so, how and where do I do that? 2. Can I force the sublane change into a gap that is as small as the vehicle length? or even smaller than a vehicle length (overlapping the red vehicle on top of blue vehicle)? Thank you! _______________________________________________ sumo-user mailing list [email protected]<mailto:[email protected]> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fsumo-user&data=04%7C01%7Cjbae42%40gatech.edu%7C285322057cc04546058b08d8c439b61e%7C482198bbae7b4b258b7a6d7f32faa083%7C0%7C0%7C637475099446757748%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=UbO4yfnKCn1mOgrBKK2jprE8H2L1SZdRKjs7pxSxPUc%3D&reserved=0>
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
