24#include <CppUnitLite/TestResult.h>
25#include <CppUnitLite/Test.h>
26#include <CppUnitLite/Failure.h>
32void testLieGroupDerivatives(TestResult& result_,
const std::string& name_,
33 const G& t1,
const G& t2) {
60void testChartDerivatives(TestResult& result_,
const std::string& name_,
61 const G& t1,
const G& t2) {
65 typedef typename T::TangentVector V;
70 V w12 = T::Local(t1, t2);
82#define CHECK_LIE_GROUP_DERIVATIVES(t1,t2) \
83 { gtsam::testLieGroupDerivatives(result_, name_, t1, t2); }
85#define CHECK_CHART_DERIVATIVES(t1,t2) \
86 { gtsam::testChartDerivatives(result_, name_, t1, t2); }
Some functions to compute numerical derivatives.
Base class and basic functions for Lie types.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative21(const std::function< Y(const X1 &, const X2 &)> &h, const X1 &x1, const X2 &x2, double delta=1e-5)
Compute numerical derivative in argument 1 of binary function.
Definition numericalDerivative.h:166
internal::FixedSizeMatrix< Y, X1 >::type numericalDerivative41(std::function< Y(const X1 &, const X2 &, const X3 &, const X4 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, double delta=1e-5)
Compute numerical derivative in argument 1 of 4-argument function.
Definition numericalDerivative.h:325
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
equals with an tolerance, prints out message if unequal
Definition Matrix.cpp:43
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative42(std::function< Y(const X1 &, const X2 &, const X3 &, const X4 &)> h, const X1 &x1, const X2 &x2, const X3 &x3, const X4 &x4, double delta=1e-5)
Compute numerical derivative in argument 2 of 4-argument function.
Definition numericalDerivative.h:359
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition concepts.h:30
OptionalJacobian is an Eigen::Ref like class that can take be constructed using either a fixed size o...
Definition OptionalJacobian.h:41