OKVIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
okvis::ceres::RelativePoseError Class Reference

Relative error between two poses. More...

#include <RelativePoseError.hpp>

Inheritance diagram for okvis::ceres::RelativePoseError:
okvis::ceres::ErrorInterface

Public Types

typedef Eigen::Matrix< double, 6, 6 > information_t
 The information matrix type (6x6). More...
 
typedef Eigen::Matrix< double, 6, 6 > covariance_t
 The covariance matrix type (same as information). More...
 

Public Member Functions

 RelativePoseError ()
 Default constructor. More...
 
 RelativePoseError (const Eigen::Matrix< double, 6, 6 > &information)
 Construct with measurement and information matrix. More...
 
 RelativePoseError (double translationVariance, double rotationVariance)
 Construct with measurement and variance. More...
 
virtual ~RelativePoseError ()
 Trivial destructor. More...
 
void setInformation (const information_t &information)
 Set the information. More...
 
const information_tinformation () const
 Get the information matrix. More...
 
const information_tcovariance () const
 Get the covariance matrix. More...
 
virtual bool Evaluate (double const *const *parameters, double *residuals, double **jacobians) const
 This evaluates the error term and additionally computes the Jacobians. More...
 
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 representation. More...
 
size_t residualDim () const
 Residual dimension. More...
 
size_t parameterBlocks () const
 Number of parameter blocks. More...
 
size_t parameterBlockDim (size_t parameterBlockId) const
 Dimension of an individual parameter block. More...
 
virtual std::string typeInfo () const
 Residual block type as string. More...
 
- Public Member Functions inherited from okvis::ceres::ErrorInterface
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ErrorInterface ()
 Constructor. More...
 
virtual ~ErrorInterface ()
 Destructor (does nothing). More...
 

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW
typedef::ceres::SizedCostFunction< 6, 7, 7 > 
base_t
 The base class type. More...
 

Static Public Attributes

static const int kNumResiduals = 6
 Number of residuals (6). More...
 

Protected Attributes

information_t information_
 The 6x6 information matrix. More...
 
information_t squareRootInformation_
 The 6x6 square root information matrix. More...
 
covariance_t covariance_
 The 6x6 covariance matrix. More...
 

Detailed Description

Relative error between two poses.

Member Typedef Documentation

typedef Eigen::Matrix<double, 6, 6> okvis::ceres::RelativePoseError::covariance_t

The covariance matrix type (same as information).

typedef Eigen::Matrix<double, 6, 6> okvis::ceres::RelativePoseError::information_t

The information matrix type (6x6).

Constructor & Destructor Documentation

okvis::ceres::RelativePoseError::RelativePoseError ( )

Default constructor.

okvis::ceres::RelativePoseError::RelativePoseError ( const Eigen::Matrix< double, 6, 6 > &  information)

Construct with measurement and information matrix.

Parameters
[in]informationThe information (weight) matrix.
okvis::ceres::RelativePoseError::RelativePoseError ( double  translationVariance,
double  rotationVariance 
)

Construct with measurement and variance.

Parameters
[in]translationVarianceThe (relative) translation variance.
[in]rotationVarianceThe (relative) rotation variance.
virtual okvis::ceres::RelativePoseError::~RelativePoseError ( )
inlinevirtual

Trivial destructor.

Member Function Documentation

const information_t& okvis::ceres::RelativePoseError::covariance ( ) const
inline

Get the covariance matrix.

Returns
The inverse information (covariance) matrix.
bool okvis::ceres::RelativePoseError::Evaluate ( double const *const *  parameters,
double *  residuals,
double **  jacobians 
) const
virtual

This evaluates the error term and additionally computes the Jacobians.

Parameters
parametersPointer to the parameters (see ceres)
residualsPointer to the residual vector (see ceres)
jacobiansPointer to the Jacobians (see ceres)
Returns
success of th evaluation.
bool okvis::ceres::RelativePoseError::EvaluateWithMinimalJacobians ( double const *const *  parameters,
double *  residuals,
double **  jacobians,
double **  jacobiansMinimal 
) const
virtual

This evaluates the error term and additionally computes the Jacobians in the minimal internal representation.

Parameters
parametersPointer to the parameters (see ceres)
residualsPointer to the residual vector (see ceres)
jacobiansPointer to the Jacobians (see ceres)
jacobiansMinimalPointer to the minimal Jacobians (equivalent to jacobians).
Returns
Success of the evaluation.

Implements okvis::ceres::ErrorInterface.

const information_t& okvis::ceres::RelativePoseError::information ( ) const
inline

Get the information matrix.

Returns
The information (weight) matrix.
size_t okvis::ceres::RelativePoseError::parameterBlockDim ( size_t  parameterBlockId) const
inlinevirtual

Dimension of an individual parameter block.

Implements okvis::ceres::ErrorInterface.

size_t okvis::ceres::RelativePoseError::parameterBlocks ( ) const
inlinevirtual

Number of parameter blocks.

Implements okvis::ceres::ErrorInterface.

size_t okvis::ceres::RelativePoseError::residualDim ( ) const
inlinevirtual

Residual dimension.

Implements okvis::ceres::ErrorInterface.

void okvis::ceres::RelativePoseError::setInformation ( const information_t information)

Set the information.

Parameters
[in]informationThe information (weight) matrix.
virtual std::string okvis::ceres::RelativePoseError::typeInfo ( ) const
inlinevirtual

Residual block type as string.

Implements okvis::ceres::ErrorInterface.

Member Data Documentation

EIGEN_MAKE_ALIGNED_OPERATOR_NEW typedef ::ceres::SizedCostFunction<6, 7, 7> okvis::ceres::RelativePoseError::base_t

The base class type.

covariance_t okvis::ceres::RelativePoseError::covariance_
protected

The 6x6 covariance matrix.

information_t okvis::ceres::RelativePoseError::information_
protected

The 6x6 information matrix.

const int okvis::ceres::RelativePoseError::kNumResiduals = 6
static

Number of residuals (6).

information_t okvis::ceres::RelativePoseError::squareRootInformation_
protected

The 6x6 square root information matrix.


The documentation for this class was generated from the following files: