Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] find follower vehicle ID

There is currently no direct function to get the follower.
A workaround would be to get all vehicles behind ego (i.e. with a context subscription) and call getLeader on them to check whether they return the ego vehicle.

Am Do., 4. Juni 2020 um 04:50 Uhr schrieb Bae, Jong In <jbae42@xxxxxxxxxx>:
Hello,

Is there any way to find the follower vehicle ID (just like the 'getLeader' function but for the follower vehicle)? 
It seems like 'getNeighbors (2==0)' function works during a lane-change process and returns nothing during the normal driving condition. 

I'm trying to get the follower vehicle ID during the normal driving condition.

Thank you!
_______________________________________________
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