提交 cf0e6520 编写于 作者: K kechxu 提交者: Dong Li

add some getters to kalmanFilter.h for future use.

上级 b48f4d32
...@@ -134,6 +134,48 @@ class KalmanFilter { ...@@ -134,6 +134,48 @@ class KalmanFilter {
*/ */
void SetControlMatrix(const Eigen::Matrix<T, XN, UN>& B) { B_ = B; } void SetControlMatrix(const Eigen::Matrix<T, XN, UN>& B) { B_ = B; }
/**
* @brief Get the system transition function under zero control.
*
* @return Transition matrix.
*/
const Eigen::Matrix<T, XN, XN>& GetTransitionMatrix() { return F_; }
/**
* @brief Get the covariance matrix of the transition noise.
*
* @return Covariance matrix
*/
const Eigen::Matrix<T, XN, XN>& GetTransitionNoise() { return Q_; }
/**
* @brief Get the observation matrix, which maps states to observations.
*
* @return Observation matrix
*/
const Eigen::Matrix<T, ZN, XN>& GetObservationMatrix() { return H_; }
/**
* @brief Get the covariance matrix of the observation noise.
*
* @return Covariance matrix
*/
const Eigen::Matrix<T, ZN, ZN>& GetObservationNoise() { return R_; }
/**
* @brief Get the covariance matrix of current state belief distribution.
*
* @return State covariance matrix
*/
const Eigen::Matrix<T, XN, XN>& GetStateCovariance() { return P_; }
/**
* @brief Get the control matrix in the state transition rule.
*
* @return Control matrix
*/
const Eigen::Matrix<T, XN, UN>& GetControlMatrix() { return B_; }
/** /**
* @brief Updates the state belief distribution given the control input u. * @brief Updates the state belief distribution given the control input u.
* *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册