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

How to get boundary type/Laneline type? #219

Closed
QuanyiLi opened this issue Feb 3, 2023 · 4 comments
Closed

How to get boundary type/Laneline type? #219

QuanyiLi opened this issue Feb 3, 2023 · 4 comments

Comments

@QuanyiLi
Copy link

QuanyiLi commented Feb 3, 2023

Hi,

I would like to know how to get the boundary type like broken lines, continuous lines, yellow lines, and so on. It would be helpful for detecting if the car crosses the yellow line or not, which should be prohibited in our daily life. Also, this can be a termination condition, I think.

@QuanyiLi
Copy link
Author

QuanyiLi commented Feb 5, 2023

I found that the boundary type can be retrieved fromboundary_type_fid. For example, 2 is for the continuous line, and 0 is for the broken one. But I can not understand the meaning of other digits, like 3, and not pretty sure about the meaning of 0 and 2, lol

@patk-motional
Copy link
Collaborator

Hi @QuanyiLi,

Here is the meaning behind the labels:

0 - "LaneDivider" = Lane Divider
1 - Unused
2 - "Roadside" = Roadside boundary
3 - "Virtual" = A virtual boundary is generally used for lane_connectors where the boundaries are not marked by physical markings

Hope that helps

@dongb5
Copy link

dongb5 commented Dec 25, 2023

@QuanyiLi Hi, how did you get the boudnar_type_fid? I cannot find them

@QuanyiLi
Copy link
Author

QuanyiLi commented Dec 25, 2023

@dongb5 I checked my legacy code. It may be something like this:

line_type = get_line_type(int(boundaries.loc[[str(left.id)]]["boundary_type_fid"]))

This line is from:

https://github.com/metadriverse/scenarionet/blob/46747d85aa3f2284b0a66ce73149c671986d2eb1/scenarionet/converter/nuplan/utils.py#L245

where you can find more context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants