15 class KalmanFitterErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "KalmanFitterError"; }
24 switch (static_cast<KalmanFitterError>(
c)) {
25 case KalmanFitterError::ForwardUpdateFailed:
26 return "Kalman forward update failed";
27 case KalmanFitterError::BackwardUpdateFailed:
28 return "Kalman backward update failed";
29 case KalmanFitterError::SmoothFailed:
30 return "Kalman smooth failed";
31 case KalmanFitterError::OutputConversionFailed:
32 return "Kalman output conversion failed";
33 case KalmanFitterError::NoMeasurementFound:
34 return "No measurement detected during the propagation";
44 static KalmanFitterErrorCategory
c;
45 return {
static_cast<int>(
e), c};