Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] using traci

If  you set argument 'blockingOnly=False' you will get followers that are further away. Otherwise, only vehicles that block lane-changing are returned.

Am Do., 7. Juli 2022 um 14:28 Uhr schrieb Luson <xxxxx@xxxxxxx>:

Hi.

I have a question about using traci. 

 

traci.vehicle.getLeftFollowers('vehicle_1', blockingOnly= True)

A problem occurs in the code that obtains the information of the adjacent left rear vehicle as above. 

There are times when an empty tuple is returned even though apparently there is a vehicle behind the left. 

My guess is that if the distance is over 50, it will not be considered as an adjacent vehicle. Is this guess correct? 

If yes, could you please increase this distance a little more? 

 

Thanks!

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top