39 #ifndef INCLUDE_OKVIS_CERES_PARAMETERBLOCKSIZED_HPP_
40 #define INCLUDE_OKVIS_CERES_PARAMETERBLOCKSIZED_HPP_
58 template<
int Dim,
int MinDim,
class T>
61 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
135 virtual bool read(std::istream& ) {
140 virtual bool write(std::ostream& )
const {
static const int MinimalDimension
Internal (minimal) dimension.
Definition: ParameterBlockSized.hpp:68
virtual size_t minimalDimension() const
Get the internal minimal parameter dimension.
Definition: ParameterBlockSized.hpp:126
virtual void setParameters(const double *parameters)
Set exact parameters of this parameter block.
Definition: ParameterBlockSized.hpp:92
virtual ~ParameterBlockSized()
Trivial destructor.
Definition: ParameterBlockSized.hpp:80
Eigen::Vector4d parameter_t
Make the parameter type accessible.
Definition: ParameterBlockSized.hpp:71
virtual const double * parameters() const
Get parameters – as a pointer.
Definition: ParameterBlockSized.hpp:114
static EIGEN_MAKE_ALIGNED_OPERATOR_NEW const int Dimension
Dimension of the parameter block.
Definition: ParameterBlockSized.hpp:65
virtual void setEstimate(const parameter_t &estimate)=0
Set estimate of this parameter block.
virtual bool read(std::istream &)
Definition: ParameterBlockSized.hpp:135
double parameters_[Dimension]
Parameters.
Definition: ParameterBlockSized.hpp:147
#define OKVIS_DEFINE_EXCEPTION(exceptionName, exceptionParent)
Macro for defining an exception with a given parent.
Definition: assert_macros.hpp:52
virtual parameter_t estimate() const =0
Get estimate.
Base class providing the interface for parameter blocks.
Definition: ParameterBlockSized.hpp:59
This file contains some useful assert macros.
virtual bool write(std::ostream &) const
Writing to file – not implemented.
Definition: ParameterBlockSized.hpp:140
virtual size_t dimension() const
Get the parameter dimension.
Definition: ParameterBlockSized.hpp:120
Header file for the ParameterBlock class.
virtual double * parameters()
Get parameters – as a pointer.
Definition: ParameterBlockSized.hpp:108
#define OKVIS_ASSERT_TRUE_DBG(exceptionType, condition, message)
Definition: assert_macros.hpp:211
Base class providing the interface for parameter blocks.
Definition: ParameterBlock.hpp:53