25 using namespace gtsam;
44 Q q1(5
e-06, 0, 0, 1), q2(-5
e-06, 0, 0, -1);
114 EXPECT(check_group_invariants(
id,
id));
115 EXPECT(check_group_invariants(
id,
R1));
116 EXPECT(check_group_invariants(
R2,
id));
119 EXPECT(check_manifold_invariants(
id,
id));
120 EXPECT(check_manifold_invariants(
id,
R1));
121 EXPECT(check_manifold_invariants(
R2,
id));
#define GTSAM_CONCEPT_ASSERT(concept)
static int runAllTests(TestResult &result)
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
Some functions to compute numerical derivatives.
static const Similarity3 id
#define CHECK_LIE_GROUP_DERIVATIVES(t1, t2)
EIGEN_DEVICE_FUNC bool isApprox(const QuaternionBase< OtherDerived > &other, const RealScalar &prec=NumTraits< Scalar >::dummy_precision()) const
#define EXPECT(condition)
Array< int, Dynamic, 1 > v
EIGEN_DEVICE_FUNC Quaternion< Scalar > inverse() const
BetweenFactor< Rot3 > Between
Array< double, 1, 3 > e(1./3., 0.5, 2.)
traits< Q >::ChartJacobian QuaternionJacobian
EIGEN_DEVICE_FUNC const Scalar & q
TEST(Quaternion, Concept)
The quaternion class used to represent 3D orientations and rotations.
#define CHECK_CHART_DERIVATIVES(t1, t2)
Represents a 3D rotation as a rotation angle around an arbitrary 3D axis.