Functions | Variables
testRelativeElevationFactor.cpp File Reference
#include <CppUnitLite/TestHarness.h>
#include <gtsam_unstable/slam/RelativeElevationFactor.h>
#include <gtsam/base/numericalDerivative.h>
Include dependency graph for testRelativeElevationFactor.cpp:

Go to the source code of this file.

Functions

Vector evalFactorError (const RelativeElevationFactor &factor, const Pose3 &x, const Point3 &p)
 
int main ()
 
const Point3 point1 (3.0, 4.0, 2.0)
 
 TEST (testRelativeElevationFactor, level_zero_error)
 
 TEST (testRelativeElevationFactor, level_positive)
 
 TEST (testRelativeElevationFactor, level_negative)
 
 TEST (testRelativeElevationFactor, rotated_zero_error)
 
 TEST (testRelativeElevationFactor, rotated_positive)
 
 TEST (testRelativeElevationFactor, rotated_negative1)
 
 TEST (testRelativeElevationFactor, rotated_negative2)
 

Variables

SharedNoiseModel model1 = noiseModel::Unit::Create(1)
 
const gtsam::Key pointKey = 2
 
const Pose3 pose1 (Rot3(), Point3(2.0, 3.0, 4.0))
 
const Pose3 pose2 (Rot3::Pitch(-M_PI_2), Point3(2.0, 3.0, 4.0))
 
const Pose3 pose3 (Rot3::RzRyRx(0.1, 0.2, 0.3), Point3(2.0, 3.0, 4.0))
 
const gtsam::Key poseKey = 1
 
const double tol = 1e-5
 

Detailed Description

Date
Aug 17, 2012
Author
Alex Cunningham

Definition in file testRelativeElevationFactor.cpp.

Function Documentation

Vector evalFactorError ( const RelativeElevationFactor factor,
const Pose3 x,
const Point3 p 
)

Definition at line 27 of file testRelativeElevationFactor.cpp.

int main ( void  )

Definition at line 137 of file testRelativeElevationFactor.cpp.

const Point3 point1 ( 3.  0,
4.  0,
2.  0 
)
TEST ( testRelativeElevationFactor  ,
level_zero_error   
)

Definition at line 32 of file testRelativeElevationFactor.cpp.

TEST ( testRelativeElevationFactor  ,
level_positive   
)

Definition at line 47 of file testRelativeElevationFactor.cpp.

TEST ( testRelativeElevationFactor  ,
level_negative   
)

Definition at line 62 of file testRelativeElevationFactor.cpp.

TEST ( testRelativeElevationFactor  ,
rotated_zero_error   
)

Definition at line 77 of file testRelativeElevationFactor.cpp.

TEST ( testRelativeElevationFactor  ,
rotated_positive   
)

Definition at line 92 of file testRelativeElevationFactor.cpp.

TEST ( testRelativeElevationFactor  ,
rotated_negative1   
)

Definition at line 107 of file testRelativeElevationFactor.cpp.

TEST ( testRelativeElevationFactor  ,
rotated_negative2   
)

Definition at line 122 of file testRelativeElevationFactor.cpp.

Variable Documentation

SharedNoiseModel model1 = noiseModel::Unit::Create(1)

Definition at line 16 of file testRelativeElevationFactor.cpp.

const gtsam::Key pointKey = 2

Definition at line 24 of file testRelativeElevationFactor.cpp.

const Pose3 pose1(Rot3(), Point3(2.0, 3.0, 4.0))
const Pose3 pose2(Rot3::Pitch(-M_PI_2), Point3(2.0, 3.0, 4.0))
const Pose3 pose3(Rot3::RzRyRx(0.1, 0.2, 0.3), Point3(2.0, 3.0, 4.0))
const gtsam::Key poseKey = 1

Definition at line 24 of file testRelativeElevationFactor.cpp.

const double tol = 1e-5

Definition at line 18 of file testRelativeElevationFactor.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:42