Skip to content

Potential Issue in LaneLocationProvider::GetLongitudinalLaneDistanceBetweenPositions

link to the code

In this function, FindLongestPath is used first to determine the longest path. Then, it checks whether project_target_pose exists to verify if the target position lies on that path. However, this approach may lead to potential issues—for example, in maps that contain junctions, wrong path could be returned and no solution will be found even if it exists.

image.png

Edited by Ziqi Zhou