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]>
Signed-off-by: Mukunda Bharatheesha <[email protected]>
  • Loading branch information
2 people authored and mbharatheesha committed Aug 16, 2024
1 parent 0d21797 commit 0848a32
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 0848a32

Please sign in to comment.