Signature should be
def traci.vehicle.getNeighbors(par):
""" byte -> List(Pair(VehID, dist)) """
Where the par parameter is a bitset (UBYTE), specifying the following:
1: query lateral direction (left:0, right:1)
2: query longitudinal direction (followers:0, leaders:1)
3: blocking (return all:0, return only blockers:1)
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.
Signature should be
Where the
parparameter is a bitset (UBYTE), specifying the following:1: query lateral direction (left:0, right:1)
2: query longitudinal direction (followers:0, leaders:1)
3: blocking (return all:0, return only blockers:1)
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.