Unit tests for end-to-end Hybrid Estimation. More...
#include <gtsam/discrete/DiscreteBayesNet.h>
#include <gtsam/geometry/Pose2.h>
#include <gtsam/geometry/Pose3.h>
#include <gtsam/hybrid/HybridBayesNet.h>
#include <gtsam/hybrid/HybridGaussianFactor.h>
#include <gtsam/hybrid/HybridNonlinearFactor.h>
#include <gtsam/hybrid/HybridNonlinearFactorGraph.h>
#include <gtsam/hybrid/HybridNonlinearISAM.h>
#include <gtsam/hybrid/HybridSmoother.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/linear/GaussianBayesNet.h>
#include <gtsam/linear/GaussianBayesTree.h>
#include <gtsam/linear/GaussianFactorGraph.h>
#include <gtsam/linear/JacobianFactor.h>
#include <gtsam/linear/NoiseModel.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/PriorFactor.h>
#include <gtsam/slam/BetweenFactor.h>
#include <CppUnitLite/TestHarness.h>
#include <string>
#include "Switching.h"
Go to the source code of this file.
Namespaces | |
estimation_fixture | |
Functions | |
static HybridGaussianFactorGraph::shared_ptr | CreateHybridGaussianFactorGraph () |
static HybridNonlinearFactorGraph | CreateHybridNonlinearFactorGraph () |
AlgebraicDecisionTree< Key > | GetProbPrimeTree (const HybridGaussianFactorGraph &graph) |
Helper method to get the tree of unnormalized probabilities as per the elimination scheme. More... | |
Switching | estimation_fixture::InitializeEstimationProblem (const size_t K, const double between_sigma, const double measurement_sigma, const std::vector< double > &measurements, const std::string &transitionProbabilityTable, HybridNonlinearFactorGraph &graph, Values &initial) |
int | main () |
TEST (HybridEstimation, CorrectnessViaSampling) | |
TEST (HybridEstimation, EliminateSequentialRegression) | |
TEST (HybridEstimation, Full) | |
TEST (HybridEstimation, IncrementalSmoother) | |
TEST (HybridEstimation, ISAM) | |
TEST (HybridEstimation, ModeSelection) | |
TEST (HybridEstimation, ModeSelection2) | |
TEST (HybridEstimation, Probability) | |
TEST (HybridEstimation, ProbabilityMultifrontal) | |
TEST (HybridEstimation, ValidPruningError) | |
Variables | |
std::vector< size_t > | estimation_fixture::discrete_seq |
std::vector< double > | estimation_fixture::measurements |
Unit tests for end-to-end Hybrid Estimation.
Definition in file testHybridEstimation.cpp.
|
static |
Definition at line 448 of file testHybridEstimation.cpp.
|
static |
Definition at line 422 of file testHybridEstimation.cpp.
AlgebraicDecisionTree<Key> GetProbPrimeTree | ( | const HybridGaussianFactorGraph & | graph | ) |
Helper method to get the tree of unnormalized probabilities as per the elimination scheme.
Used as a helper to compute q(\mu | M, Z) which is used by both P(X | M, Z) and P(M | Z).
graph | The HybridGaussianFactorGraph to eliminate. |
Definition at line 273 of file testHybridEstimation.cpp.
int main | ( | ) |
Definition at line 647 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
CorrectnessViaSampling | |||
) |
Definition at line 496 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
EliminateSequentialRegression | |||
) |
Definition at line 461 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
Full | |||
) |
Definition at line 77 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
IncrementalSmoother | |||
) |
Definition at line 119 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
ISAM | |||
) |
Definition at line 216 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
ModeSelection | |||
) |
Definition at line 528 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
ModeSelection2 | |||
) |
Definition at line 587 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
Probability | |||
) |
Definition at line 318 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
ProbabilityMultifrontal | |||
) |
Test for correctness of different branches of the P'(Continuous | Discrete) in the multi-frontal setting. The values should match those of P'(Continuous) for each discrete mode.
Definition at line 357 of file testHybridEstimation.cpp.
TEST | ( | HybridEstimation | , |
ValidPruningError | |||
) |
Definition at line 168 of file testHybridEstimation.cpp.