Go to the documentation of this file.
35 using namespace gtsam;
48 TEST(FrobeniusPriorSO3, evaluateError) {
49 using namespace ::
so3;
61 TEST(FrobeniusPriorSO3, ClosestTo) {
64 M << 0.79067393, 0.6051136, -0.0930814,
65 0.4155925, -0.64214347, -0.64324489,
66 -0.44948549, 0.47046326, -0.75917576;
82 TEST(FrobeniusPriorSO3, ChordalL2mean) {
89 using namespace ::
so3;
108 TEST(FrobeniusFactorSO3, evaluateError) {
109 using namespace ::
so3;
139 TEST(FrobeniusBetweenFactorSO3, evaluateError) {
140 using namespace ::
so3;
155 Vector6
v1 = (
Vector(6) << 0.1, 0, 0, 0, 0, 0).finished();
157 Vector6
v2 = (
Vector(6) << 0.01, 0.02, 0.03, 0.04, 0.05, 0.06).finished();
162 TEST(FrobeniusFactorSO4, evaluateError) {
163 using namespace ::
so4;
176 TEST(FrobeniusBetweenFactorSO4, evaluateError) {
177 using namespace ::
so4;
200 TEST(FrobeniusFactorPose2, evaluateError) {
201 using namespace ::
pose2;
214 TEST(FrobeniusBetweenFactorPose2, evaluateError) {
215 using namespace ::
pose2;
236 TEST(FrobeniusFactorPose3, evaluateError) {
237 using namespace ::
pose3;
250 TEST(FrobeniusBetweenFactorPose3, evaluateError) {
251 using namespace ::
pose3;
static int runAllTests(TestResult &result)
Class between(const Class &g) const
SO inverse() const
inverse of a rotation = transpose
virtual const Values & optimize()
#define EXPECT_CORRECT_FACTOR_JACOBIANS(factor, values, numerical_derivative_step, tolerance)
Check the Jacobians produced by a factor against finite differences.
static SO ChordalMean(const std::vector< SO > &rotations)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Vector vec(OptionalJacobian< 16, 6 > H={}) const
Return vectorized SE(3) matrix in column order.
#define EXPECT(condition)
static Pose3 pose3(rt3, pt3)
static SO Expmap(const TangentVector &omega, ChartJacobian H={})
4*4 matrix representation of SO(4)
3D rotation represented as a rotation matrix or quaternion
DecisionTreeFactor factor(D &C &B &A, "0.0 0.0 0.0 0.60658897 0.61241912 0.61241969 0.61247685 0.61247742 0.0 " "0.0 0.0 0.99995287 1.0 1.0 1.0 1.0")
3*3 matrix representation of SO(3)
double error(const Values &values) const
const ValueType at(Key j) const
static const Similarity3 id
const MatrixNN & matrix() const
Return matrix.
static shared_ptr Create(size_t dim)
Evaluate derivatives of a nonlinear factor numerically.
void insert(Key j, const Vector &value)
#define EXPECT_DOUBLES_EQUAL(expected, actual, threshold)
Map< Matrix< T, Dynamic, Dynamic, ColMajor >, 0, OuterStride<> > matrix(T *data, int rows, int cols, int stride)
TEST(SmartFactorBase, Pinhole)
Factor Graph consisting of non-linear factors.
static Rot3 Expmap(const Vector3 &v, OptionalJacobian< 3, 3 > H={})
bool assert_equal(const Matrix &expected, const Matrix &actual, double tol)
static SO ClosestTo(const MatrixNN &M)
NonlinearFactorGraph graph
Provides convenient mappings of common member functions for testing.
VectorN2 vec(OptionalJacobian< internal::NSquaredSO(N), dimension > H={}) const
Various factors that minimize some Frobenius norm.
3D Pose manifold SO(3) x R^3 and group SE(3)
IsDerived< DERIVEDFACTOR > emplace_shared(Args &&... args)
Emplace a shared pointer to factor of given type.
Matrix< RealScalar, Dynamic, Dynamic > M
gtsam
Author(s):
autogenerated on Wed Mar 19 2025 03:06:38