Unit tests for BearingFactor Class. More...
#include <gtsam/sam/BearingFactor.h>
#include <gtsam/geometry/Pose2.h>
#include <gtsam/geometry/Pose3.h>
#include <gtsam/nonlinear/factorTesting.h>
#include <gtsam/nonlinear/expressionTesting.h>
#include <gtsam/base/serialization.h>
#include <gtsam/base/serializationTestHelpers.h>
#include <CppUnitLite/TestHarness.h>
Go to the source code of this file.
Typedefs | |
typedef BearingFactor< Pose2, Point2 > | BearingFactor2D |
typedef BearingFactor< Pose3, Point3 > | BearingFactor3D |
Functions | |
BOOST_CLASS_EXPORT (gtsam::noiseModel::Isotropic) | |
int | main () |
double | measurement2D (10.0) |
static SharedNoiseModel | model2D (noiseModel::Isotropic::Sigma(1, 0.5)) |
static SharedNoiseModel | model3D (noiseModel::Isotropic::Sigma(2, 0.5)) |
Key | pointKey (2) |
Key | poseKey (1) |
TEST (BearingFactor, Serialization2D) | |
TEST (BearingFactor, 2D) | |
TEST (BearingFactor, Serialization3D) | |
Variables | |
BearingFactor2D | factor2D (poseKey, pointKey, measurement2D, model2D) |
BearingFactor3D | factor3D (poseKey, pointKey, measurement3D, model3D) |
Unit3 | measurement3D = Pose3().bearing(Point3(1, 0, 0)) |
typedef BearingFactor<Pose2, Point2> BearingFactor2D |
Definition at line 35 of file testBearingFactor.cpp.
typedef BearingFactor<Pose3, Point3> BearingFactor3D |
Definition at line 40 of file testBearingFactor.cpp.
BOOST_CLASS_EXPORT | ( | gtsam::noiseModel::Isotropic | ) |
int main | ( | void | ) |
Definition at line 113 of file testBearingFactor.cpp.
double measurement2D | ( | 10. | 0 | ) |
|
static |
|
static |
Key pointKey | ( | 2 | ) |
Key poseKey | ( | 1 | ) |
TEST | ( | BearingFactor | , |
Serialization2D | |||
) |
Definition at line 51 of file testBearingFactor.cpp.
TEST | ( | BearingFactor | , |
2D | |||
) |
Definition at line 58 of file testBearingFactor.cpp.
TEST | ( | BearingFactor | , |
Serialization3D | |||
) |
Definition at line 77 of file testBearingFactor.cpp.
BearingFactor2D factor2D(poseKey, pointKey, measurement2D, model2D) |
BearingFactor3D factor3D(poseKey, pointKey, measurement3D, model3D) |
Definition at line 41 of file testBearingFactor.cpp.