Skip to content

Commit 74b4106

Browse files
committed
member method argument corrected
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
1 parent e3b9bc7 commit 74b4106

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

control/mpc_lateral_controller/include/mpc_lateral_controller/mpc_lateral_controller.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class MpcLateralController : public trajectory_follower::LateralControllerBase
9797
// trajectory buffer for detecting new trajectory
9898
std::deque<Trajectory> m_trajectory_buffer;
9999

100-
void setStatus(diagnostic_updater::DiagnosticStatusWrapper & stat, const bool & m_is_mpc_solved);
100+
void setStatus(diagnostic_updater::DiagnosticStatusWrapper & stat);
101101

102102
void setupDiag();
103103

control/mpc_lateral_controller/src/mpc_lateral_controller.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ std::shared_ptr<SteeringOffsetEstimator> MpcLateralController::createSteerOffset
232232
}
233233

234234
void MpcLateralController::setStatus(
235-
diagnostic_updater::DiagnosticStatusWrapper & stat, const bool & m_is_mpc_solved)
235+
diagnostic_updater::DiagnosticStatusWrapper & stat)
236236
{
237237
if (m_is_mpc_solved) {
238238
stat.summary(diagnostic_msgs::msg::DiagnosticStatus::OK, "MPC succeeded.");
@@ -249,7 +249,7 @@ void MpcLateralController::setupDiag()
249249

250250
d->add("MPC_solve_checker", [&](auto & stat) {
251251
setStatus(
252-
stat, m_is_mpc_solved);
252+
stat);
253253
});
254254
}
255255

0 commit comments

Comments
 (0)