Skip to content

Commit

Permalink
fix(autoware_radar_fusion_to_detected_object): fix variableScope (aut…
Browse files Browse the repository at this point in the history
…owarefoundation#8429)

fix:variableScope

Signed-off-by: Nagi70 <[email protected]>
Co-authored-by: kobayu858 <[email protected]>
  • Loading branch information
Nagi70 and kobayu858 authored Aug 13, 2024
1 parent 3c0a78b commit bbc8525
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ TwistWithCovariance RadarFusionToDetectedObject::estimateTwist(

// calculate twist for radar data with target_value * average
Eigen::Vector2d vec_target_value_average(0.0, 0.0);
double sum_target_value = 0.0;
if (param_.velocity_weight_target_value_average > 0.0) {
double sum_target_value = 0.0;
for (const auto & radar : (*radars)) {
vec_target_value_average += (toVector2d(radar.twist_with_covariance) * radar.target_value);
sum_target_value += radar.target_value;
Expand Down

0 comments on commit bbc8525

Please sign in to comment.