39 #ifndef INCLUDE_OKVIS_CERES_HOMOGENEOUSPOINTERROR_HPP_
40 #define INCLUDE_OKVIS_CERES_HOMOGENEOUSPOINTERROR_HPP_
43 #include <ceres/ceres.h>
58 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
62 typedef ::ceres::SizedCostFunction<3, 4>
base_t;
128 virtual bool Evaluate(
double const*
const * parameters,
double* residuals,
129 double** jacobians)
const;
143 double** jacobiansMinimal)
const;
153 return base_t::parameter_block_sizes().size();
160 return base_t::parameter_block_sizes().at(parameterBlockId);
165 return "HomogeneousPointError";
virtual std::string typeInfo() const
Return parameter block type as string.
Definition: HomogeneousPointError.hpp:164
Header file for the ErrorInterface class. A simple interface class that other error classes should in...
virtual bool EvaluateWithMinimalJacobians(double const *const *parameters, double *residuals, double **jacobians, double **jacobiansMinimal) const
EvaluateWithMinimalJacobians This evaluates the error term and additionally computes the Jacobians in...
Definition: HomogeneousPointError.cpp:79
Eigen::Matrix< double, 3, 3 > covariance_t
The covariance matrix type (same as information).
Definition: HomogeneousPointError.hpp:71
Eigen::Vector4d measurement_
The (4D) measurement.
Definition: HomogeneousPointError.hpp:171
information_t _squareRootInformation
The 4x4 square root information matrix.
Definition: HomogeneousPointError.hpp:175
covariance_t covariance_
The 4x4 covariance matrix.
Definition: HomogeneousPointError.hpp:176
Eigen::Matrix< double, 3, 3 > information_t
The information matrix type (3x3).
Definition: HomogeneousPointError.hpp:68
Simple interface class the errors implemented here should inherit from.
Definition: ErrorInterface.hpp:53
const information_t & information() const
Get the information matrix.
Definition: HomogeneousPointError.hpp:111
size_t parameterBlockDim(size_t parameterBlockId) const
Dimension of an individual parameter block.
Definition: HomogeneousPointError.hpp:159
size_t parameterBlocks() const
Number of parameter blocks.
Definition: HomogeneousPointError.hpp:152
#define OKVIS_DEFINE_EXCEPTION(exceptionName, exceptionParent)
Macro for defining an exception with a given parent.
Definition: assert_macros.hpp:52
const Eigen::Vector4d & measurement() const
Get the measurement.
Definition: HomogeneousPointError.hpp:105
This file contains some useful assert macros.
size_t residualDim() const
Residual dimension.
Definition: HomogeneousPointError.hpp:147
information_t information_
The 4x4 information matrix.
Definition: HomogeneousPointError.hpp:174
void setMeasurement(const Eigen::Vector4d &measurement)
Set the measurement.
Definition: HomogeneousPointError.hpp:94
void setInformation(const information_t &information)
Set the information.
Definition: HomogeneousPointError.cpp:62
Absolute error of a homogeneous point (landmark).
Definition: HomogeneousPointError.hpp:54
EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef::ceres::SizedCostFunction< 3, 4 > base_t
The base class type.
Definition: HomogeneousPointError.hpp:62
const information_t & covariance() const
Get the covariance matrix.
Definition: HomogeneousPointError.hpp:117
virtual bool Evaluate(double const *const *parameters, double *residuals, double **jacobians) const
This evaluates the error term and additionally computes the Jacobians.
Definition: HomogeneousPointError.cpp:71
static const int kNumResiduals
Number of residuals (3)
Definition: HomogeneousPointError.hpp:65