Skip to content

Commit 3900cbe

Browse files
authored
fix(autoware_behavior_path_goal_planner_module): fix lateral_offset related warnings (#7624)
Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
1 parent 8b24d9b commit 3900cbe

File tree

1 file changed

+1
-3
lines changed
  • planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src

1 file changed

+1
-3
lines changed

planning/behavior_path_planner/autoware_behavior_path_goal_planner_module/src/goal_searcher.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ GoalCandidates GoalSearcher::search(
161161
original_search_poses.push_back(original_search_pose); // for createAreaPolygon
162162
Pose search_pose{};
163163
// search goal_pose in lateral direction
164-
double lateral_offset = 0.0;
165164
for (double dy = 0; dy <= max_lateral_offset; dy += lateral_offset_interval) {
166-
lateral_offset = dy;
167165
search_pose = calcOffsetPose(original_search_pose, 0, sign * dy, 0);
168166

169167
const auto transformed_vehicle_footprint =
@@ -185,7 +183,7 @@ GoalCandidates GoalSearcher::search(
185183

186184
GoalCandidate goal_candidate{};
187185
goal_candidate.goal_pose = search_pose;
188-
goal_candidate.lateral_offset = lateral_offset;
186+
goal_candidate.lateral_offset = dy;
189187
goal_candidate.id = goal_id;
190188
goal_id++;
191189
// use longitudinal_distance as distance_from_original_goal

0 commit comments

Comments
 (0)