Go to the documentation of this file.
23 using namespace gtsam;
139 Matrix expectedH, actualH;
167 EXPECT(check_group_invariants(
id,
id));
168 EXPECT(check_group_invariants(
id,
T1));
169 EXPECT(check_group_invariants(
T2,
id));
172 EXPECT(check_manifold_invariants(
id,
id));
173 EXPECT(check_manifold_invariants(
id,
T1));
174 EXPECT(check_manifold_invariants(
T2,
id));
static int runAllTests(TestResult &result)
Class between(const Class &g) const
gtsam::Expression< typename gtsam::traits< T >::TangentVector > logmap(const gtsam::Expression< T > &x1, const gtsam::Expression< T > &x2)
logmap
Expression< T > between(const Expression< T > &t1, const Expression< T > &t2)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Point2 unrotate(const Point2 &p, OptionalJacobian< 2, 1 > H1={}, OptionalJacobian< 2, 2 > H2={}) const
#define GTSAM_CONCEPT_TESTABLE_INST(T)
Concept check for values that can be used in unit tests.
Jet< T, N > sin(const Jet< T, N > &f)
#define EXPECT(condition)
static Rot2 fromCosSin(double c, double s)
Named constructor from cos(theta),sin(theta) pair.
Class compose(const Class &g) const
internal::FixedSizeMatrix< Y, X >::type numericalDerivative11(std::function< Y(const X &)> h, const X &x, double delta=1e-5)
New-style numerical derivatives using manifold_traits.
static Rot2 relativeBearing(const Point2 &d, OptionalJacobian< 1, 2 > H={})
static Rot2 atan2(double y, double x)
internal::FixedSizeMatrix< Y, X2 >::type numericalDerivative22(std::function< Y(const X1 &, const X2 &)> h, const X1 &x1, const X2 &x2, double delta=1e-5)
static const Point3 pt(1.0, 2.0, 3.0)
int EIGEN_BLAS_FUNC() rot(int *n, RealScalar *px, int *incx, RealScalar *py, int *incy, RealScalar *pc, RealScalar *ps)
Jet< T, N > cos(const Jet< T, N > &f)
Expression< T > compose(const Expression< T > &t1, const Expression< T > &t2)
static Rot2 fromAngle(double theta)
Named constructor from angle in radians.
static const Similarity3 id
Point3_ unrotate(const Rot3_ &x, const Point3_ &p)
Point3_ rotate(const Rot3_ &x, const Point3_ &p)
bool equals(const Rot2 &R, double tol=1e-9) const
#define DOUBLES_EQUAL(expected, actual, threshold)
#define GTSAM_CONCEPT_LIE_INST(T)
EIGEN_DONT_INLINE Scalar zero()
#define CHECK_LIE_GROUP_DERIVATIVES(t1, t2)
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
Point2 unrotate_(const Rot2 &R, const Point2 &p)
Matrix2 transpose() const
TangentVector localCoordinates(const Class &g) const
localCoordinates as required by manifold concept: finds tangent vector between *this and g
Point2 rotate(const Point2 &p, OptionalJacobian< 2, 1 > H1={}, OptionalJacobian< 2, 2 > H2={}) const
TEST(SmartFactorBase, Pinhole)
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)
Rot2 relativeBearing_(const Point2 &pt)
Array< int, Dynamic, 1 > v
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Class retract(const TangentVector &v) const
retract as required by manifold concept: applies v at *this
static const Similarity3 T1(R, Point3(3.5, -8.2, 4.2), 1)
#define CHECK_CHART_DERIVATIVES(t1, t2)
Rot2 R(Rot2::fromAngle(0.1))
Point2 rotate_(const Rot2 &R, const Point2 &p)
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:08:23