Unit tests for HybridNonlinearFactorGraph. More...
#include <gtsam/base/TestableAssertions.h>
#include <gtsam/base/utilities.h>
#include <gtsam/discrete/DiscreteBayesNet.h>
#include <gtsam/discrete/DiscreteDistribution.h>
#include <gtsam/discrete/DiscreteFactorGraph.h>
#include <gtsam/geometry/Pose2.h>
#include <gtsam/hybrid/HybridEliminationTree.h>
#include <gtsam/hybrid/HybridFactor.h>
#include <gtsam/hybrid/HybridNonlinearFactor.h>
#include <gtsam/hybrid/HybridNonlinearFactorGraph.h>
#include <gtsam/linear/GaussianBayesNet.h>
#include <gtsam/linear/GaussianFactorGraph.h>
#include <gtsam/linear/NoiseModel.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/PriorFactor.h>
#include <gtsam/sam/BearingRangeFactor.h>
#include <gtsam/slam/BetweenFactor.h>
#include "Switching.h"
#include <CppUnitLite/TestHarness.h>
Go to the source code of this file.
Namespaces | |
test_motion | |
test_relinearization | |
Functions | |
GaussianFactorGraph::shared_ptr | batchGFG (double between, Values linearizationPoint) |
static HybridNonlinearFactorGraph | test_relinearization::CreateFactorGraph (const std::vector< double > &means, const std::vector< double > &sigmas, DiscreteKey &m1, double x0_measurement, double measurement_noise=1e-3) |
Create a Factor Graph by directly specifying all the factors instead of creating conditionals first. This way we can directly provide the likelihoods and then perform (re-)linearization. More... | |
gtsam::DiscreteKey | test_motion::m1 (M(1), 2) |
int | main () |
TEST (GaussianElimination, Eliminate_x0) | |
TEST (HybridGaussianElimination, EliminateHybrid_2_Variable) | |
TEST (HybridGaussianFactorGraph, Resize) | |
TEST (HybridNonlinearFactorGraph, DefaultDecisionTree) | |
TEST (HybridNonlinearFactorGraph, DifferentCovariances) | |
Test components with differing covariances but the same means. The factor graph is -X1--X2 | M1. More... | |
TEST (HybridNonlinearFactorGraph, DifferentMeans) | |
Test components with differing means but the same covariances. The factor graph is -X1--X2 | M1. More... | |
TEST (HybridNonlinearFactorGraph, EliminationTree) | |
TEST (HybridNonlinearFactorGraph, Equals) | |
TEST (HybridNonlinearFactorGraph, Error) | |
TEST (HybridNonlinearFactorGraph, ErrorTree) | |
TEST (HybridNonlinearFactorGraph, Full_Elimination) | |
TEST (HybridNonlinearFactorGraph, GaussianFactorGraph) | |
TEST (HybridNonlinearFactorGraph, Linearization) | |
TEST (HybridNonlinearFactorGraph, Partial_Elimination) | |
TEST (HybridNonlinearFactorGraph, PrintErrors) | |
TEST (HybridNonlinearFactorGraph, Printing) | |
TEST (HybridNonlinearFactorGraph, PushBack) | |
TEST (HybridNonlinearFactorGraph, Relinearization) | |
TEST (HybridNonlinearFactorGraph, Resize) | |
TEST (HybridNonlinearFactorGraph, Switching) | |
TEST (HybridsGaussianElimination, Eliminate_x1) | |
Variables | |
std::vector< NoiseModelFactor::shared_ptr > | test_motion::components |
auto | test_motion::noise_model = noiseModel::Isotropic::Sigma(1, 1.0) |
Unit tests for HybridNonlinearFactorGraph.
Definition in file testHybridNonlinearFactorGraph.cpp.
GaussianFactorGraph::shared_ptr batchGFG | ( | double | between, |
Values | linearizationPoint | ||
) |
Definition at line 333 of file testHybridNonlinearFactorGraph.cpp.
int main | ( | ) |
Definition at line 1119 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | GaussianElimination | , |
Eliminate_x0 | |||
) |
Definition at line 286 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridGaussianElimination | , |
EliminateHybrid_2_Variable | |||
) |
Definition at line 349 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridGaussianFactorGraph | , |
Resize | |||
) |
Definition at line 129 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
DefaultDecisionTree | |||
) |
Definition at line 860 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
DifferentCovariances | |||
) |
Test components with differing covariances but the same means. The factor graph is -X1--X2 | M1.
Definition at line 1039 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
DifferentMeans | |||
) |
Test components with differing means but the same covariances. The factor graph is -X1--X2 | M1.
Definition at line 963 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
EliminationTree | |||
) |
Definition at line 271 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Equals | |||
) |
Definition at line 75 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Error | |||
) |
Definition at line 408 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
ErrorTree | |||
) |
Definition at line 216 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Full_Elimination | |||
) |
Definition at line 463 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
GaussianFactorGraph | |||
) |
Definition at line 52 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Linearization | |||
) |
Definition at line 258 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Partial_Elimination | |||
) |
Definition at line 380 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
PrintErrors | |||
) |
Definition at line 439 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Printing | |||
) |
Definition at line 524 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
PushBack | |||
) |
Definition at line 158 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Relinearization | |||
) |
Definition at line 1071 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Resize | |||
) |
Definition at line 99 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridNonlinearFactorGraph | , |
Switching | |||
) |
Definition at line 248 of file testHybridNonlinearFactorGraph.cpp.
TEST | ( | HybridsGaussianElimination | , |
Eliminate_x1 | |||
) |
Definition at line 311 of file testHybridNonlinearFactorGraph.cpp.