39 #ifndef INCLUDE_OKVIS_CERES_RELATIVEPOSEERROR_HPP_
40 #define INCLUDE_OKVIS_CERES_RELATIVEPOSEERROR_HPP_
43 #include "ceres/ceres.h"
60 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
64 typedef ::ceres::SizedCostFunction<6, 7, 7>
base_t;
117 virtual bool Evaluate(
double const*
const * parameters,
double* residuals,
118 double** jacobians)
const;
130 double* residuals,
double** jacobians,
131 double** jacobiansMinimal)
const;
141 return parameter_block_sizes().size();
146 return base_t::parameter_block_sizes().at(parameterBlockId);
151 return "RelativePoseError";
bool EvaluateWithMinimalJacobians(double const *const *parameters, double *residuals, double **jacobians, double **jacobiansMinimal) const
This evaluates the error term and additionally computes the Jacobians in the minimal internal represe...
Definition: RelativePoseError.cpp:84
Header file for the ErrorInterface class. A simple interface class that other error classes should in...
virtual std::string typeInfo() const
Residual block type as string.
Definition: RelativePoseError.hpp:150
static const int kNumResiduals
Number of residuals (6).
Definition: RelativePoseError.hpp:67
size_t parameterBlocks() const
Number of parameter blocks.
Definition: RelativePoseError.hpp:140
Relative error between two poses.
Definition: RelativePoseError.hpp:54
const information_t & covariance() const
Get the covariance matrix.
Definition: RelativePoseError.hpp:105
Simple interface class the errors implemented here should inherit from.
Definition: ErrorInterface.hpp:53
size_t residualDim() const
Residual dimension.
Definition: RelativePoseError.hpp:135
information_t squareRootInformation_
The 6x6 square root information matrix.
Definition: RelativePoseError.hpp:158
#define OKVIS_DEFINE_EXCEPTION(exceptionName, exceptionParent)
Macro for defining an exception with a given parent.
Definition: assert_macros.hpp:52
covariance_t covariance_
The 6x6 covariance matrix.
Definition: RelativePoseError.hpp:159
Eigen::Matrix< double, 6, 6 > information_t
The information matrix type (6x6).
Definition: RelativePoseError.hpp:70
This file contains some useful assert macros.
information_t information_
The 6x6 information matrix.
Definition: RelativePoseError.hpp:157
Eigen::Matrix< double, 6, 6 > covariance_t
The covariance matrix type (same as information).
Definition: RelativePoseError.hpp:73
const information_t & information() const
Get the information matrix.
Definition: RelativePoseError.hpp:99
virtual bool Evaluate(double const *const *parameters, double *residuals, double **jacobians) const
This evaluates the error term and additionally computes the Jacobians.
Definition: RelativePoseError.cpp:77
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef::ceres::SizedCostFunction< 6, 7, 7 > base_t
The base class type.
Definition: RelativePoseError.hpp:64
void setInformation(const information_t &information)
Set the information.
Definition: RelativePoseError.cpp:68
size_t parameterBlockDim(size_t parameterBlockId) const
Dimension of an individual parameter block.
Definition: RelativePoseError.hpp:145