diff --git a/modules/common/math/kalman_filter.h b/modules/common/math/kalman_filter.h index ac96acdae35dc7f00f82d69bd0eac6f054dbfdd2..78ac3437df5d9505aba475e2a1b985819654c690 100644 --- a/modules/common/math/kalman_filter.h +++ b/modules/common/math/kalman_filter.h @@ -134,6 +134,48 @@ class KalmanFilter { */ void SetControlMatrix(const Eigen::Matrix& B) { B_ = B; } + /** + * @brief Get the system transition function under zero control. + * + * @return Transition matrix. + */ + const Eigen::Matrix& GetTransitionMatrix() { return F_; } + + /** + * @brief Get the covariance matrix of the transition noise. + * + * @return Covariance matrix + */ + const Eigen::Matrix& GetTransitionNoise() { return Q_; } + + /** + * @brief Get the observation matrix, which maps states to observations. + * + * @return Observation matrix + */ + const Eigen::Matrix& GetObservationMatrix() { return H_; } + + /** + * @brief Get the covariance matrix of the observation noise. + * + * @return Covariance matrix + */ + const Eigen::Matrix& GetObservationNoise() { return R_; } + + /** + * @brief Get the covariance matrix of current state belief distribution. + * + * @return State covariance matrix + */ + const Eigen::Matrix& GetStateCovariance() { return P_; } + + /** + * @brief Get the control matrix in the state transition rule. + * + * @return Control matrix + */ + const Eigen::Matrix& GetControlMatrix() { return B_; } + /** * @brief Updates the state belief distribution given the control input u. *