OpenLane-V2 icon indicating copy to clipboard operation
OpenLane-V2 copied to clipboard

filter train set gt labels

Open kaiyi98 opened this issue 10 months ago • 5 comments

hello, I want to remove the extension lines in intersection that are not in the current direction in the -ls.json file. How should the logic of judgment be?

Thanks.

kaiyi98 avatar Apr 18 '24 02:04 kaiyi98

Hi, maybe you can utilize the direction and topology of the centerlines? The order of points represents the direction of centerlines.

faikit avatar Apr 18 '24 03:04 faikit

You can also use the key is_intersection_or_connector to filter the lane segments within the intersection.

sephyli avatar Apr 18 '24 03:04 sephyli

You can also use the key is_intersection_or_connector to filter the lane segments within the intersection.

but I need to keep the centerlines that the current car might travel on.

kaiyi98 avatar Apr 19 '24 09:04 kaiyi98

Hi, maybe you can utilize the direction and topology of the centerlines? The order of points represents the direction of centerlines.

just the vector from startpoint to endpoint?But when the car rotates, the angle between the vector and the car coordinate system changes.

kaiyi98 avatar Apr 19 '24 09:04 kaiyi98

You can also use the key is_intersection_or_connector to filter the lane segments within the intersection.

but I need to keep the centerlines that the current car might travel on.

The coordinate of the ego car is (0, 0) on the ground plane. This property may be used to filter the lane on which the ego car is driving. Then, the topology relationship on lane can be used to calculate lanes on which ego car might travel.

faikit avatar Jul 19 '24 03:07 faikit