27 #ifndef G2O_BASE_EDGE_H 28 #define G2O_BASE_EDGE_H 39 template <
int D,
typename E>
46 typedef Eigen::Matrix<double, D, 1, Eigen::ColMajor>
ErrorVector;
56 virtual double chi2()
const 82 std::cerr <<
"inititialEstimate() is not implemented, please give implementation in your derived class" << std::endl;
103 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
114 typedef Eigen::Matrix<double, Eigen::Dynamic, 1, Eigen::ColMajor>
ErrorVector;
115 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor>
InformationType;
149 std::cerr <<
"inititialEstimate() is not implemented, please give implementation in your derived class" << std::endl;
170 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
InformationType robustInformation(const Vector3D &rho)
Eigen::Matrix< double, Eigen::Dynamic, 1, Eigen::ColMajor > ErrorVector
Eigen::Matrix< double, 3, 1, Eigen::ColMajor > Vector3D
void setInformation(const InformationType &information)
virtual double chi2() const
computes the chi2 based on the cached error value, only valid after computeError has been called...
std::set< Vertex * > VertexSet
virtual double chi2() const
computes the chi2 based on the cached error value, only valid after computeError has been called...
const Measurement & measurement() const
accessor functions for the measurement represented by the edge
Eigen::Matrix< double, D, D, Eigen::ColMajor > InformationType
InformationType _information
virtual void setMeasurement(const Measurement &m)
const ErrorVector & error() const
InformationType _information
virtual double * informationData()
Eigen::Matrix< double, D, 1, Eigen::ColMajor > ErrorVector
virtual double * errorData()
const InformationType & information() const
information matrix of the constraint
virtual void initialEstimate(const OptimizableGraph::VertexSet &, OptimizableGraph::Vertex *)
virtual void setMeasurement(const Measurement &m)
virtual void initialEstimate(const OptimizableGraph::VertexSet &, OptimizableGraph::Vertex *)
const ErrorVector & error() const
EIGEN_STRONG_INLINE void setInformation(const InformationType &information)
InformationType & information()
EIGEN_STRONG_INLINE InformationType & information()
A general case Vertex for optimization.
virtual const double * informationData() const
returns the memory of the information matrix, usable for example with a Eigen::Map<MatrixXD> ...
virtual const double * errorData() const
returns the error vector cached after calling the computeError;
virtual double * informationData()
virtual const double * errorData() const
returns the error vector cached after calling the computeError;
EIGEN_STRONG_INLINE const InformationType & information() const
information matrix of the constraint
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > InformationType
virtual const double * informationData() const
returns the memory of the information matrix, usable for example with a Eigen::Map<MatrixXD> ...
InformationType robustInformation(const Vector3D &rho)
virtual double * errorData()
static const int Dimension
EIGEN_STRONG_INLINE const Measurement & measurement() const
accessor functions for the measurement represented by the edge