Skip to content

Commit

Permalink
fix(autoware_behavior_path_dynamic_obstacle_avoidance_module): fix bi…
Browse files Browse the repository at this point in the history
…twiseOnBoolean warning (autowarefoundation#7636)

Signed-off-by: veqcc <ryuta.kambe@tier4.jp>
  • Loading branch information
veqcc authored Jun 24, 2024
1 parent e5be1be commit 5bead38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ DynamicObstacleAvoidanceModule::calcMinMaxLateralOffsetToAvoidRegulatedObject(
return prev_object->lat_offset_to_avoid->min_value;
}();
const double filtered_min_bound_lat_offset =
(prev_min_lat_avoid_to_offset.has_value() & enable_lowpass_filter)
(prev_min_lat_avoid_to_offset.has_value() && enable_lowpass_filter)
? signal_processing::lowpassFilter(
min_bound_lat_offset, *prev_min_lat_avoid_to_offset,
parameters_->lpf_gain_for_lat_avoid_to_offset)
Expand Down Expand Up @@ -1556,7 +1556,7 @@ DynamicObstacleAvoidanceModule::calcMinMaxLateralOffsetToAvoidUnregulatedObject(
return prev_object->lat_offset_to_avoid->min_value;
}();
const double filtered_min_bound_pos =
(prev_min_lat_avoid_to_offset.has_value() & enable_lowpass_filter)
(prev_min_lat_avoid_to_offset.has_value() && enable_lowpass_filter)
? signal_processing::lowpassFilter(
bound_pos.min_value, *prev_min_lat_avoid_to_offset,
parameters_->lpf_gain_for_lat_avoid_to_offset)
Expand Down

0 comments on commit 5bead38

Please sign in to comment.