Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow retrieval of neighboring vehicles via traci #5170

Closed
leoluecken opened this issue Feb 11, 2019 · 2 comments

Comments

@leoluecken
Copy link
Contributor

commented Feb 11, 2019

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.

@namdre

This comment has been minimized.

Copy link
Contributor

commented Feb 12, 2019

@leoluecken Could you also add this to the wiki traci documentation (once it is back online)?

@leoluecken

This comment has been minimized.

Copy link
Contributor Author

commented Feb 12, 2019

  • Docu
  • #5180 related doubts on sanity for sublane case

@leoluecken leoluecken reopened this Feb 12, 2019

leoluecken added a commit that referenced this issue Feb 13, 2019
Removing nullptr test from MSLeaderInfo() (became redundant after usi…
…ng shared pointers for MSAbstractLaneChangeModel::myRightFollowers, etc), refs #5170, #5180
leoluecken added a commit that referenced this issue Feb 13, 2019

@leoluecken leoluecken closed this Feb 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.