Unit tests for HybridGaussianProductFactor. More...
#include <gtsam/base/Testable.h>
#include <gtsam/base/TestableAssertions.h>
#include <gtsam/hybrid/HybridGaussianFactor.h>
#include <gtsam/hybrid/HybridGaussianProductFactor.h>
#include <gtsam/inference/Key.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/linear/GaussianConditional.h>
#include <gtsam/linear/JacobianFactor.h>
#include <CppUnitLite/TestHarness.h>
#include <memory>
Go to the source code of this file.
Namespaces | |
examples | |
Functions | |
static const DiscreteKey | examples::m1 (M(1), 2) |
static const DiscreteKey | examples::m2 (M(2), 3) |
int | main () |
TEST (HybridGaussianProductFactor, AddOne) | |
TEST (HybridGaussianProductFactor, AddPruned) | |
TEST (HybridGaussianProductFactor, AddTwo) | |
TEST (HybridGaussianProductFactor, AddTwoGaussianConditionals) | |
TEST (HybridGaussianProductFactor, AddTwoGaussianFactors) | |
TEST (HybridGaussianProductFactor, AsProductFactor) | |
TEST (HybridGaussianProductFactor, Construct) | |
Variables | |
const auto | examples::A1 = Matrix::Zero(2, 1) |
const auto | examples::A2 = Matrix::Zero(2, 2) |
const auto | examples::A3 = Matrix::Zero(2, 3) |
const auto | examples::b = Matrix::Zero(2, 1) |
const auto | examples::f10 = std::make_shared<JacobianFactor>(X(1), A1, X(2), A2, b) |
const auto | examples::f11 = std::make_shared<JacobianFactor>(X(1), A1, X(2), A2, b) |
const auto | examples::f20 = std::make_shared<JacobianFactor>(X(1), A1, X(3), A3, b) |
const auto | examples::f21 = std::make_shared<JacobianFactor>(X(1), A1, X(3), A3, b) |
const auto | examples::f22 = std::make_shared<JacobianFactor>(X(1), A1, X(3), A3, b) |
const HybridGaussianFactor | examples::hybridFactorA (m1, {{f10, 10}, {f11, 11}}) |
const HybridGaussianFactor | examples::hybridFactorB (m2, {{f20, 20}, {f21, 21}, {f22, 22}}) |
const HybridGaussianFactor | examples::prunedFactorB (m2, {{f20, 20}, {nullptr, 1000}, {f22, 22}}) |
Unit tests for HybridGaussianProductFactor.
Definition in file testHybridGaussianProductFactor.cpp.
int main | ( | ) |
Definition at line 199 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
AddOne | |||
) |
Definition at line 139 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
AddPruned | |||
) |
Definition at line 182 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
AddTwo | |||
) |
Definition at line 159 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
AddTwoGaussianConditionals | |||
) |
Definition at line 92 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
AddTwoGaussianFactors | |||
) |
Definition at line 69 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
AsProductFactor | |||
) |
Definition at line 120 of file testHybridGaussianProductFactor.cpp.
TEST | ( | HybridGaussianProductFactor | , |
Construct | |||
) |
Definition at line 63 of file testHybridGaussianProductFactor.cpp.