Skip to content

Commit afa5ab4

Browse files
committed
find_nearest_point
1 parent ccfd4d0 commit afa5ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core_planning/lane_planner/lib/lane_planner/lane_planner_vmap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ vector_map::Point find_arrival_point(const VectorMap& lane_vmap, int lno,
234234
vector_map::Point find_nearest_point(const VectorMap& vmap, const vector_map::Point& point)
235235
{
236236
vector_map::Point nearest_point;
237-
nearest_point.pid = -1;
237+
nearest_point.pid = -1; //设置为-1,如果返回的pid<0代表没有找到最近点
238238

239239
double distance = DBL_MAX;
240240
for (const vector_map::Point& p : vmap.points) {

0 commit comments

Comments
 (0)