Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow retrieval of neighboring vehicles via traci #5170
Signature should be
def traci.vehicle.getNeighbors(par): """ byte -> List(Pair(VehID, dist)) """
For the first version, the exact set of blockers in case blocking==1 is not determined in for the sublane model, but all neighboring vehicles are either returned (in case LCA_BLOCKED) or none os returned (in case !LCA_BLOCKED).
The returned list contains all neighboring leaders, resp. followers, along with their longitudinal distance to the ego vehicle. For the non-sublane case, the lists will contain at most one entry.