4#include "optimizable_graph.h"
15 template <s
int04 t_dims,
typename E>
26 : OptimizableGraph::
OGEdge()
37 g_type
chi2() const final
override
71 int rank()
const {
return t_dims; }
89 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
g_type * informationData() final override
Returns a mutable pointer to the raw information matrix data.
const Measurement & measurement() const
accessor functions for the measurement represented by the edge
g_type chi2() const final override
Computes the chi-squared error: e^T * Omega * e.
BaseEdge()
Default constructor.
g_type scalerInformation() const
information matrix of the constraint
InformationType robustInformation(const Eigen::Vector3< g_type > &rho) const
calculate the robust information matrix by updating the information matrix of the error
void setInformation(g_type information)
Sets the information matrix to a scaled identity.
static constexpr sint04 Dimension
InformationType _information
int rank() const
Returns the rank (dimension) of the error.
Eigen::Matrix< g_type, t_dims, t_dims > InformationType
const InformationType & information() const
Returns a const reference to the information matrix.
const g_type * informationData() const final override
Returns a const pointer to the raw information matrix data.
const ErrorVector & error() const
Returns a const reference to the error vector.
void setMeasurement(const Measurement &m)
Sets the measurement for this edge.
Eigen::Matrix< g_type, t_dims, 1 > ErrorVector
void setInformation(const InformationType &information)
Sets the information matrix.
virtual sint04 dimension() const final override
Returns the dimension of the error vector.
Base edge class for the optimizable graph, adding error computation and robust kernels.
OGEdge()
Default constructor.
The primary namespace for the NDEVR SDK.
int32_t sint04
-Defines an alias representing a 4 byte, signed integer.