40 #ifndef INCLUDE_OKVIS_CERES_ERRORINTERFACE_HPP_
41 #define INCLUDE_OKVIS_CERES_ERRORINTERFACE_HPP_
55 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
95 double const*
const * parameters,
double* residuals,
double** jacobians,
96 double** jacobiansMinimal)
const = 0;
99 virtual std::string
typeInfo()
const = 0;
virtual size_t residualDim() const =0
Get dimension of residuals.
virtual size_t parameterBlocks() const =0
Get the number of parameter blocks this is connected to.
virtual size_t parameterBlockDim(size_t parameterBlockId) const =0
get the dimension of a parameter block this is connected to.
Simple interface class the errors implemented here should inherit from.
Definition: ErrorInterface.hpp:53
#define OKVIS_DEFINE_EXCEPTION(exceptionName, exceptionParent)
Macro for defining an exception with a given parent.
Definition: assert_macros.hpp:52
This file contains some useful assert macros.
virtual std::string typeInfo() const =0
Residual block type as string.
virtual bool EvaluateWithMinimalJacobians(double const *const *parameters, double *residuals, double **jacobians, double **jacobiansMinimal) const =0
This evaluates the error term and additionally computes the Jacobians in the minimal internal represe...
virtual ~ErrorInterface()
Destructor (does nothing).
Definition: ErrorInterface.hpp:62