Typedefs | Functions | Variables
testPinholePose.cpp File Reference

test PinholePose class More...

#include <gtsam/geometry/PinholePose.h>
#include <gtsam/geometry/Cal3_S2.h>
#include <gtsam/geometry/Pose2.h>
#include <gtsam/geometry/Cal3Bundler.h>
#include <gtsam/base/Testable.h>
#include <gtsam/base/numericalDerivative.h>
#include <CppUnitLite/TestHarness.h>
#include <cmath>
#include <iostream>
Include dependency graph for testPinholePose.cpp:

Go to the source code of this file.

Typedefs

typedef PinholePose< Cal3_S2Camera
 
typedef PinholePose< Cal3BundlerCamera2
 

Functions

static Point3 backproject (const Pose3 &pose, const Cal3_S2 &cal, const Point2 &p, const double &depth)
 
int main ()
 
static const Point3 point1 (-0.08,-0.08, 0.0)
 
static const Point3 point2 (-0.08, 0.08, 0.0)
 
static const Point3 point3 (0.08, 0.08, 0.0)
 
static const Point3 point4 (0.08,-0.08, 0.0)
 
static Point2 project (const Pose3 &pose, const Unit3 &pointAtInfinity, const Cal3_S2::shared_ptr &cal)
 
static Point2 project3 (const Pose3 &pose, const Point3 &point, const Cal3_S2::shared_ptr &cal)
 
static Point2 project4 (const Camera &camera, const Point3 &point)
 
static double range0 (const Camera &camera, const Point3 &point)
 
static double range1 (const Camera &camera, const Pose3 &pose)
 
static double range2 (const Camera &camera, const Camera2 &camera2)
 
static double range3 (const Camera &camera, const CalibratedCamera &camera3)
 
 TEST (PinholePose, constructor)
 
 TEST (PinholePose, lookat)
 
 TEST (PinholePose, project)
 
 TEST (PinholePose, backproject)
 
 TEST (PinholePose, backprojectInfinity)
 
 TEST (PinholePose, backproject2)
 
 TEST (PinholePose, Dproject)
 
 TEST (PinholePose, Dproject2)
 
 TEST (CalibratedCamera, Dproject3)
 
 TEST (PinholePose, DprojectAtInfinity2)
 
 TEST (PinholePose, DbackprojectRegCamera)
 
 TEST (PinholePose, range0)
 
 TEST (PinholePose, range1)
 
 TEST (PinholePose, range2)
 
 TEST (PinholePose, range3)
 

Variables

static const Camera camera (pose, K)
 
static const Camera camera1 (pose1, K)
 
static const Camera2 camera2 (pose1, K2)
 
static const CalibratedCamera camera3 (pose1)
 
static const Cal3_S2::shared_ptr K = boost::make_shared<Cal3_S2>(625, 625, 0, 0, 0)
 
static const boost::shared_ptr< Cal3BundlerK2
 
static const Unit3 point1_inf (-0.16,-0.16,-1.0)
 
static const Unit3 point2_inf (-0.16, 0.16,-1.0)
 
static const Unit3 point3_inf (0.16, 0.16,-1.0)
 
static const Unit3 point4_inf (0.16,-0.16,-1.0)
 
static const Pose3 pose (Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
 
static const Pose3 pose1 (Rot3(), Point3(0, 1, 0.5))
 

Detailed Description

test PinholePose class

Author
Frank Dellaert
Date
Feb 20, 2015

Definition in file testPinholePose.cpp.

Typedef Documentation

Definition at line 34 of file testPinholePose.cpp.

Definition at line 265 of file testPinholePose.cpp.

Function Documentation

static Point3 backproject ( const Pose3 pose,
const Cal3_S2 cal,
const Point2 p,
const double &  depth 
)
static

Definition at line 207 of file testPinholePose.cpp.

int main ( void  )

Definition at line 302 of file testPinholePose.cpp.

static const Point3 point1 ( -0.  08,
-0.  08,
0.  0 
)
static
static const Point3 point2 ( -0.  08,
0.  08,
0.  0 
)
static
static const Point3 point3 ( 0.  08,
0.  08,
0.  0 
)
static
static const Point3 point4 ( 0.  08,
-0.  08,
0.  0 
)
static
static Point2 project ( const Pose3 pose,
const Unit3 pointAtInfinity,
const Cal3_S2::shared_ptr cal 
)
static

Definition at line 188 of file testPinholePose.cpp.

static Point2 project3 ( const Pose3 pose,
const Point3 point,
const Cal3_S2::shared_ptr cal 
)
static

Definition at line 139 of file testPinholePose.cpp.

static Point2 project4 ( const Camera camera,
const Point3 point 
)
static

Definition at line 157 of file testPinholePose.cpp.

static double range0 ( const Camera camera,
const Point3 point 
)
static

Definition at line 233 of file testPinholePose.cpp.

static double range1 ( const Camera camera,
const Pose3 pose 
)
static

Definition at line 249 of file testPinholePose.cpp.

static double range2 ( const Camera camera,
const Camera2 camera2 
)
static

Definition at line 269 of file testPinholePose.cpp.

static double range3 ( const Camera camera,
const CalibratedCamera camera3 
)
static

Definition at line 286 of file testPinholePose.cpp.

TEST ( PinholePose  ,
constructor   
)

Definition at line 55 of file testPinholePose.cpp.

TEST ( PinholePose  ,
lookat   
)

Definition at line 76 of file testPinholePose.cpp.

TEST ( PinholePose  ,
project   
)

Definition at line 96 of file testPinholePose.cpp.

TEST ( PinholePose  ,
backproject   
)

Definition at line 105 of file testPinholePose.cpp.

TEST ( PinholePose  ,
backprojectInfinity   
)

Definition at line 114 of file testPinholePose.cpp.

TEST ( PinholePose  ,
backproject2   
)

Definition at line 123 of file testPinholePose.cpp.

TEST ( PinholePose  ,
Dproject   
)

Definition at line 145 of file testPinholePose.cpp.

TEST ( PinholePose  ,
Dproject2   
)

Definition at line 162 of file testPinholePose.cpp.

TEST ( CalibratedCamera  ,
Dproject3   
)

Definition at line 175 of file testPinholePose.cpp.

TEST ( PinholePose  ,
DprojectAtInfinity2   
)

Definition at line 194 of file testPinholePose.cpp.

TEST ( PinholePose  ,
DbackprojectRegCamera   
)

Definition at line 212 of file testPinholePose.cpp.

TEST ( PinholePose  ,
range0   
)

Definition at line 238 of file testPinholePose.cpp.

TEST ( PinholePose  ,
range1   
)

Definition at line 254 of file testPinholePose.cpp.

TEST ( PinholePose  ,
range2   
)

Definition at line 274 of file testPinholePose.cpp.

TEST ( PinholePose  ,
range3   
)

Definition at line 291 of file testPinholePose.cpp.

Variable Documentation

const Camera camera(pose, K)
static
const Camera camera1(pose1, K)
static
const Camera2 camera2(pose1, K2)
static
const CalibratedCamera camera3(pose1)
static
const Cal3_S2::shared_ptr K = boost::make_shared<Cal3_S2>(625, 625, 0, 0, 0)
static

Definition at line 36 of file testPinholePose.cpp.

const boost::shared_ptr<Cal3Bundler> K2
static
Initial value:
=
boost::make_shared<Cal3Bundler>(625, 1e-3, 1e-3)
Array< double, 1, 3 > e(1./3., 0.5, 2.)

Definition at line 266 of file testPinholePose.cpp.

const Unit3 point1_inf(-0.16,-0.16,-1.0)
static
const Unit3 point2_inf(-0.16, 0.16,-1.0)
static
const Unit3 point3_inf(0.16, 0.16,-1.0)
static
const Unit3 point4_inf(0.16,-0.16,-1.0)
static
const Pose3 pose(Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
static
const Pose3 pose1(Rot3(), Point3(0, 1, 0.5))
static


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