unit tests for GeneralSFMFactor More...
#include <gtsam/slam/GeneralSFMFactor.h>
#include <gtsam/sam/RangeFactor.h>
#include <gtsam/geometry/Cal3_S2.h>
#include <gtsam/geometry/Rot2.h>
#include <gtsam/geometry/PinholeCamera.h>
#include <gtsam/nonlinear/NonlinearEquality.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/LevenbergMarquardtOptimizer.h>
#include <gtsam/linear/VectorValues.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/base/Testable.h>
#include <boost/assign/std/vector.hpp>
#include <boost/shared_ptr.hpp>
#include <CppUnitLite/TestHarness.h>
#include <iostream>
#include <vector>
Go to the source code of this file.
Classes | |
class | Graph |
Typedefs | |
typedef NonlinearEquality< GeneralCamera > | CameraConstraint |
typedef PinholeCamera< Cal3_S2 > | GeneralCamera |
typedef NonlinearEquality< Point3 > | Point3Constraint |
typedef GeneralSFMFactor< GeneralCamera, Point3 > | Projection |
Functions | |
static vector< GeneralCamera > | genCameraDefaultCalibration () |
static vector< GeneralCamera > | genCameraVariableCalibration () |
static vector< Point3 > | genPoint3 () |
static double | getGaussian () |
static boost::shared_ptr< Ordering > | getOrdering (const vector< GeneralCamera > &cameras, const vector< Point3 > &landmarks) |
int | main () |
static const SharedNoiseModel | sigma1 (noiseModel::Unit::Create(2)) |
TEST (GeneralSFMFactor, equals) | |
TEST (GeneralSFMFactor, error) | |
TEST (GeneralSFMFactor, optimize_defaultK) | |
TEST (GeneralSFMFactor, optimize_varK_SingleMeasurementError) | |
TEST (GeneralSFMFactor, optimize_varK_FixCameras) | |
TEST (GeneralSFMFactor, optimize_varK_FixLandmarks) | |
TEST (GeneralSFMFactor, optimize_varK_BA) | |
TEST (GeneralSFMFactor, GeneralCameraPoseRange) | |
TEST (GeneralSFMFactor, CalibratedCameraPoseRange) | |
TEST (GeneralSFMFactor, BinaryJacobianFactor) | |
TEST (GeneralSFMFactor, BinaryJacobianFactor2) | |
Variables | |
static const double | baseline = 5. |
Definition at line 48 of file testGeneralSFMFactor.cpp.
typedef PinholeCamera<Cal3_S2> GeneralCamera |
Definition at line 46 of file testGeneralSFMFactor.cpp.
typedef NonlinearEquality<Point3> Point3Constraint |
Definition at line 49 of file testGeneralSFMFactor.cpp.
typedef GeneralSFMFactor<GeneralCamera, Point3> Projection |
Definition at line 47 of file testGeneralSFMFactor.cpp.
|
static |
Definition at line 105 of file testGeneralSFMFactor.cpp.
|
static |
Definition at line 112 of file testGeneralSFMFactor.cpp.
|
static |
Definition at line 87 of file testGeneralSFMFactor.cpp.
|
static |
Definition at line 70 of file testGeneralSFMFactor.cpp.
|
static |
Definition at line 120 of file testGeneralSFMFactor.cpp.
int main | ( | void | ) |
Definition at line 527 of file testGeneralSFMFactor.cpp.
|
static |
TEST | ( | GeneralSFMFactor | , |
equals | |||
) |
Definition at line 131 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
error | |||
) |
Definition at line 146 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
optimize_defaultK | |||
) |
Definition at line 164 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
optimize_varK_SingleMeasurementError | |||
) |
Definition at line 203 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
optimize_varK_FixCameras | |||
) |
Definition at line 245 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
optimize_varK_FixLandmarks | |||
) |
Definition at line 285 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
optimize_varK_BA | |||
) |
Definition at line 337 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
GeneralCameraPoseRange | |||
) |
Definition at line 383 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
CalibratedCameraPoseRange | |||
) |
Definition at line 411 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
BinaryJacobianFactor | |||
) |
Definition at line 441 of file testGeneralSFMFactor.cpp.
TEST | ( | GeneralSFMFactor | , |
BinaryJacobianFactor2 | |||
) |
Definition at line 500 of file testGeneralSFMFactor.cpp.
|
static |
Definition at line 84 of file testGeneralSFMFactor.cpp.