Namespaces | Functions | Variables
testHybridGaussianProductFactor.cpp File Reference

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>
Include dependency graph for testHybridGaussianProductFactor.cpp:

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}})
 

Detailed Description

Unit tests for HybridGaussianProductFactor.

Author
Frank Dellaert
Date
October 2024

Definition in file testHybridGaussianProductFactor.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 199 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [1/7]

TEST ( HybridGaussianProductFactor  ,
AddOne   
)

Definition at line 139 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [2/7]

TEST ( HybridGaussianProductFactor  ,
AddPruned   
)

Definition at line 182 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [3/7]

TEST ( HybridGaussianProductFactor  ,
AddTwo   
)

Definition at line 159 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [4/7]

TEST ( HybridGaussianProductFactor  ,
AddTwoGaussianConditionals   
)

Definition at line 92 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [5/7]

TEST ( HybridGaussianProductFactor  ,
AddTwoGaussianFactors   
)

Definition at line 69 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [6/7]

TEST ( HybridGaussianProductFactor  ,
AsProductFactor   
)

Definition at line 120 of file testHybridGaussianProductFactor.cpp.

◆ TEST() [7/7]

Definition at line 63 of file testHybridGaussianProductFactor.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:53