Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Vehicles are not Responding to Commands in TraCI

Hello Everyone

 

I am fairly new to Python and SUMO. I have a bus route, referred to as a Green Bus Route, that is running in SUMO. This bus route has two buses on its line/route and somehow these buses manage to get bunched up together, offering no headway between the two vehicles. I am currently trying to solve this issue by having the follower bus slow down for some time so that it can get some adequate headway between it and the leading bus. In order to this, I am having the following bus “detect” the lead bus through the traci.vehicle.getLeader() method and having the bus slow down with traci.vehicle.slowDown() method. However, when I run my script in the simulation, the simulation runs with no errors, but the green buses don’t seem to do what I had intended them to do in the Python script.

 

I have attached some test files to this email for reference to clear up any confusion. Please refer to the Python function named “maintain_headway” for where this issue seems to be occurring.

 

Thanks for the help in advance

Ifezue

 

Sent from Mail for Windows

 

Attachment: testing_files_Revised.zip
Description: Zip archive


Back to the top