Namespaces | Functions | Variables
testHybridNonlinearFactor.cpp File Reference

Unit tests for HybridNonlinearFactor. More...

#include <gtsam/base/TestableAssertions.h>
#include <gtsam/discrete/DiscreteValues.h>
#include <gtsam/hybrid/HybridBayesNet.h>
#include <gtsam/hybrid/HybridGaussianFactorGraph.h>
#include <gtsam/hybrid/HybridNonlinearFactor.h>
#include <gtsam/hybrid/HybridNonlinearFactorGraph.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/slam/BetweenFactor.h>
#include <CppUnitLite/TestHarness.h>
Include dependency graph for testHybridNonlinearFactor.cpp:

Go to the source code of this file.

Namespaces

 test_constructor
 

Functions

static HybridNonlinearFactor getHybridNonlinearFactor ()
 
DiscreteKey test_constructor::m1 (1, 2)
 
int main ()
 
 TEST (HybridGaussianFactor, ConstructorVariants)
 
 TEST (HybridNonlinearFactor, Constructor)
 
 TEST (HybridNonlinearFactor, Dim)
 
 TEST (HybridNonlinearFactor, Error)
 
 TEST (HybridNonlinearFactor, Printing)
 

Variables

double test_constructor::between0 = 0.0
 
double test_constructor::between1 = 1.0
 
auto test_constructor::f0 = std::make_shared<BetweenFactor<double>>(X(1), X(2), between0, model)
 
auto test_constructor::f1 = std::make_shared<BetweenFactor<double>>(X(1), X(2), between1, model)
 
auto test_constructor::model = noiseModel::Diagonal::Sigmas(sigmas, false)
 
Vector1 test_constructor::sigmas = Vector1(1.0)
 

Detailed Description

Unit tests for HybridNonlinearFactor.

Author
Varun Agrawal
Date
October 2022

Definition in file testHybridNonlinearFactor.cpp.

Function Documentation

◆ getHybridNonlinearFactor()

static HybridNonlinearFactor getHybridNonlinearFactor ( )
static

Definition at line 86 of file testHybridNonlinearFactor.cpp.

◆ main()

int main ( )

Definition at line 130 of file testHybridNonlinearFactor.cpp.

◆ TEST() [1/5]

TEST ( HybridGaussianFactor  ,
ConstructorVariants   
)

Definition at line 61 of file testHybridNonlinearFactor.cpp.

◆ TEST() [2/5]

TEST ( HybridNonlinearFactor  ,
Constructor   
)

Definition at line 39 of file testHybridNonlinearFactor.cpp.

◆ TEST() [3/5]

TEST ( HybridNonlinearFactor  ,
Dim   
)

Definition at line 124 of file testHybridNonlinearFactor.cpp.

◆ TEST() [4/5]

TEST ( HybridNonlinearFactor  ,
Error   
)

Definition at line 104 of file testHybridNonlinearFactor.cpp.

◆ TEST() [5/5]

TEST ( HybridNonlinearFactor  ,
Printing   
)

Definition at line 76 of file testHybridNonlinearFactor.cpp.



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