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

Redesign get_neighbor_... functions #69

Closed
MaximeBouton opened this issue Mar 9, 2020 · 0 comments
Closed

Redesign get_neighbor_... functions #69

MaximeBouton opened this issue Mar 9, 2020 · 0 comments
Labels
Milestone

Comments

@MaximeBouton
Copy link
Member

the functions get_neighbor_fore_along_lane, get_neighbor_fore_along_left_lane ... contain a lot of repeated code.

It could be nice to redesign this part to have one function find_neighbor that would accept as argument the specification: fore, rear, left lane, right lane ...
The signature could be find_neighbor(scene, roadway, ego, lane; rear=False). This function would find the front neighbor of ego in lane. It would find the rear neihbor if rear is set to true.

@MaximeBouton MaximeBouton added this to the v0.8 milestone Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant