Skip to content

Commit

Permalink
fix(control_performance_analysis): clang-diagnostic-pessimizing-move (#…
Browse files Browse the repository at this point in the history
…9380)

Signed-off-by: veqcc <[email protected]>
  • Loading branch information
veqcc authored Nov 19, 2024
1 parent 332a9bb commit 5778e01
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ bool ControlPerformanceAnalysisCore::calculateDrivingVars()
lpf(curr.desired_steering_angle.data, prev->desired_steering_angle.data);
}

prev_driving_vars_ =
std::move(std::make_unique<msg::DrivingMonitorStamped>(driving_status_vars));
prev_driving_vars_ = std::make_unique<msg::DrivingMonitorStamped>(driving_status_vars);

last_odom_header.stamp = odom_history_ptr_->at(odom_size - 1).header.stamp;
last_steering_report.stamp = current_vec_steering_msg_ptr_->stamp;
Expand Down

0 comments on commit 5778e01

Please sign in to comment.