Skip to content

Commit

Permalink
fix(autoware_behavior_path_static_obstacle_avoidance_module): fix bug…
Browse files Browse the repository at this point in the history
…prone-branch-clone (#9701)

fix: bugprone-error

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Dec 24, 2024
1 parent 72bc2dc commit 3402b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,7 @@ void StaticObstacleAvoidanceModule::fillFundamentalData(

std::for_each(
data.current_lanelets.begin(), data.current_lanelets.end(), [&](const auto & lanelet) {
if (!not_use_adjacent_lane) {
data.drivable_lanes.push_back(
utils::static_obstacle_avoidance::generateExpandedDrivableLanes(
lanelet, planner_data_, parameters_));
} else if (red_signal_lane_itr->id() != lanelet.id()) {
if (!not_use_adjacent_lane || red_signal_lane_itr->id() != lanelet.id()) {
data.drivable_lanes.push_back(
utils::static_obstacle_avoidance::generateExpandedDrivableLanes(
lanelet, planner_data_, parameters_));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@ AvoidOutlines ShiftLineGenerator::generateAvoidOutline(
AvoidOutlines outlines;
for (auto & o : data.target_objects) {
if (!o.avoid_margin.has_value()) {
if (!data.red_signal_lane.has_value()) {
o.info = ObjectInfo::INSUFFICIENT_DRIVABLE_SPACE;
} else if (data.red_signal_lane.value().id() == o.overhang_lanelet.id()) {
if (data.red_signal_lane.value().id() == o.overhang_lanelet.id()) {
o.info = ObjectInfo::LIMIT_DRIVABLE_SPACE_TEMPORARY;
} else {
o.info = ObjectInfo::INSUFFICIENT_DRIVABLE_SPACE;
Expand Down

0 comments on commit 3402b6a

Please sign in to comment.