File tree 2 files changed +6
-5
lines changed
control/mpc_lateral_controller
include/mpc_lateral_controller
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 32
32
#include " tier4_debug_msgs/msg/float32_multi_array_stamped.hpp"
33
33
#include " tier4_debug_msgs/msg/float32_stamped.hpp"
34
34
35
+ #include < diagnostic_updater/diagnostic_updater.hpp>
35
36
#include < deque>
36
37
#include < memory>
37
38
#include < string>
@@ -91,9 +92,9 @@ class MpcLateralController : public trajectory_follower::LateralControllerBase
91
92
// trajectory buffer for detecting new trajectory
92
93
std::deque<Trajectory> m_trajectory_buffer;
93
94
94
- Updater diag_updater_{this }; // Diagnostic updater for publishing diagnostic data.
95
+ diagnostic_updater:: Updater diag_updater_{this }; // Diagnostic updater for publishing diagnostic data.
95
96
96
- void setStatus (DiagnosticStatusWrapper & stat, const bool & m_MPC_failed);
97
+ void setStatus (diagnostic_updater:: DiagnosticStatusWrapper & stat, const bool & m_MPC_failed);
97
98
98
99
void setupDiag ();
99
100
Original file line number Diff line number Diff line change @@ -230,13 +230,13 @@ std::shared_ptr<SteeringOffsetEstimator> MpcLateralController::createSteerOffset
230
230
}
231
231
232
232
void MpcLateralController::setStatus (
233
- DiagnosticStatusWrapper & stat, const bool & is_mpc_solved)
233
+ diagnostic_updater:: DiagnosticStatusWrapper & stat, const bool & is_mpc_solved)
234
234
{
235
235
if (is_mpc_solved) {
236
- stat.summary (DiagnosticStatus::OK, " MPC succeeded." );
236
+ stat.summary (diagnostic_msgs::msg:: DiagnosticStatus::OK, " MPC succeeded." );
237
237
} else {
238
238
const std::string & error_msg = " The MPC solver failed. Call MRM to stop the car." ;
239
- stat.summary (DiagnosticStatus::ERROR, error_msg);
239
+ stat.summary (diagnostic_msgs::msg:: DiagnosticStatus::ERROR, error_msg);
240
240
}
241
241
}
242
242
You can’t perform that action at this time.
0 commit comments