13 #include <system_error>
18 ForwardUpdateFailed = 1,
19 BackwardUpdateFailed = 2,
21 OutputConversionFailed = 4,
30 const char*
name() const noexcept final {
return "KalmanFitterError"; }
33 switch (static_cast<KalmanFitterError>(
c)) {
34 case KalmanFitterError::ForwardUpdateFailed:
35 return "Kalman forward update failed";
36 case KalmanFitterError::BackwardUpdateFailed:
37 return "Kalman backward update failed";
38 case KalmanFitterError::SmoothFailed:
39 return "Kalman smooth failed";
40 case KalmanFitterError::OutputConversionFailed:
41 return "Kalman output conversion failed";
42 case KalmanFitterError::PropagationInVain:
43 return "No measurement detected during the propagation";