25 #ifndef INCLUDED_AbsolutePositionMeasurement_h_GUID_F2854FEA_1E84_479E_1B5D_A302104DBF47
26 #define INCLUDED_AbsolutePositionMeasurement_h_GUID_F2854FEA_1E84_479E_1B5D_A302104DBF47
47 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
53 MeasurementVector
const &variance)
54 : m_pos(pos), m_covariance(variance.asDiagonal()) {}
56 template <
typename State>
57 MeasurementMatrix getCovariance(State
const &)
const {
66 template <
typename State>
68 MeasurementVector residual = m_pos - s.position();
76 MeasurementVector m_pos;
77 MeasurementDiagonalMatrix m_covariance;
90 using State = pose_externalized_rotation::State;
91 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
97 MeasurementVector
const &variance)
98 :
Base(pos, variance), m_jacobian(Jacobian::Zero()) {
103 getJacobian(State
const &)
const {
112 #endif // INCLUDED_AbsolutePositionMeasurement_h_GUID_F2854FEA_1E84_479E_1B5D_A302104DBF47
Eigen::Matrix< Scalar, n, 1 > Vector
A vector of length n.
typename detail::Dimension_impl< T >::type Dimension
Eigen::Matrix< Scalar, n, n > SquareMatrix
A square matrix, n x n.
The main namespace for all C++ elements of the framework, internal and external.
Header wrapping include of and for warning quieting.
void setMeasurement(MeasurementVector const &pos)
Convenience method to be able to store and re-use measurements.
Eigen::DiagonalMatrix< Scalar, n > DiagonalMatrix
A square diagonal matrix, n x n.
std::size_t DimensionType
Type for dimensions.
MeasurementVector getResidual(State const &s) const
Eigen::Matrix< Scalar, m, n > Matrix
A matrix with rows = m, cols = n.