33T FindKarcherMean(
const std::vector<T, Eigen::aligned_allocator<T>> &rotations);
35template <
class T> T FindKarcherMean(std::initializer_list<T> &&rotations);
53 boost::shared_ptr<JacobianFactor> whitenedJacobian_;
61 template <
typename CONTAINER>
63 boost::optional<double> beta = boost::none);
72 size_t dim()
const override {
return d_; }
76 return whitenedJacobian_;
typedef and functions to augment Eigen's MatrixXd
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition: concepts.h:30
const KeyVector & keys() const
Access the factor's involved variable keys.
Definition: Factor.h:125
Nonlinear factor base class.
Definition: NonlinearFactor.h:43
A non-templated config holding any types of Manifold-group elements.
Definition: Values.h:63
The KarcherMeanFactor creates a constraint on all SO(n) variables with given keys that the Karcher me...
Definition: KarcherMeanFactor.h:45
double error(const Values &c) const override
Calculate the error of the factor: always zero.
Definition: KarcherMeanFactor.h:69
KarcherMeanFactor(const CONTAINER &keys, int d=D, boost::optional< double > beta=boost::none)
Construct from given keys.
Definition: KarcherMeanFactor-inl.h:61
size_t dim() const override
get the dimension of the factor (number of rows on linearization)
Definition: KarcherMeanFactor.h:72
boost::shared_ptr< GaussianFactor > linearize(const Values &c) const override
linearize to a GaussianFactor
Definition: KarcherMeanFactor.h:75
~KarcherMeanFactor() override
Destructor.
Definition: KarcherMeanFactor.h:66