From c9d592072896bc4239b6adebfc04b51b7cdd93c4 Mon Sep 17 00:00:00 2001 From: kosuke55 Date: Wed, 6 Sep 2023 00:38:04 +0900 Subject: [PATCH] fix(crosswalk): fix build Signed-off-by: kosuke55 --- .../behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp b/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp index f70a03f5ae7af..2b1928a9d7ef0 100644 --- a/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp +++ b/planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp @@ -747,6 +747,8 @@ Polygon2d CrosswalkModule::getAttentionArea( break; } + const auto & p_ego_front = sparse_resample_path.points.at(j).point.pose; + const auto & p_ego_back = sparse_resample_path.points.at(j + 1).point.pose; const auto ego_one_step_polygon = createOneStepPolygon(p_ego_front, p_ego_back, ego_polygon); debug_data_.ego_polygons.push_back(toGeometryPointVector(ego_one_step_polygon, ego_pos.z));