Macros | Functions | Variables
laser_cb_detector_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <laser_cb_detector/ConfigGoal.h>
#include <laser_cb_detector/laser_cb_detector.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/core/types_c.h>
#include <ros/console.h>
Include dependency graph for laser_cb_detector_unittest.cpp:

Go to the source code of this file.

Macros

#define str(s)   #s
 
#define xstr(s)   str(s)
 

Functions

void check3x4 (const calibration_msgs::CalibrationPattern &result, double pix_eps, bool flipped)
 
ConfigGoal config3x4 ()
 
calibration_msgs::DenseLaserSnapshot getSnapshot (const string &filename)
 
int main (int argc, char **argv)
 
 TEST (LaserCbDetector, easy_cb_3x4)
 
 TEST (LaserCbDetector, malformedTest)
 
 TEST (LaserCbDetector, noCheckerboardTest)
 
 TEST (LaserCbDetector, reflected_cb_3x4)
 
 TEST (LaserCbDetector, scaled_cb_3x4)
 

Variables

static const bool DEBUG =false
 
static const double eps = 1e-6
 
static const double pix_eps_ = .6
 
static const string test_path = xstr(TEST_PATH)
 

Macro Definition Documentation

◆ str

#define str (   s)    #s

Definition at line 57 of file laser_cb_detector_unittest.cpp.

◆ xstr

#define xstr (   s)    str(s)

Definition at line 56 of file laser_cb_detector_unittest.cpp.

Function Documentation

◆ check3x4()

void check3x4 ( const calibration_msgs::CalibrationPattern &  result,
double  pix_eps,
bool  flipped 
)

Definition at line 136 of file laser_cb_detector_unittest.cpp.

◆ config3x4()

ConfigGoal config3x4 ( )

Definition at line 112 of file laser_cb_detector_unittest.cpp.

◆ getSnapshot()

calibration_msgs::DenseLaserSnapshot getSnapshot ( const string &  filename)

Definition at line 60 of file laser_cb_detector_unittest.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 286 of file laser_cb_detector_unittest.cpp.

◆ TEST() [1/5]

TEST ( LaserCbDetector  ,
easy_cb_3x4   
)

Definition at line 178 of file laser_cb_detector_unittest.cpp.

◆ TEST() [2/5]

TEST ( LaserCbDetector  ,
malformedTest   
)

Definition at line 248 of file laser_cb_detector_unittest.cpp.

◆ TEST() [3/5]

TEST ( LaserCbDetector  ,
noCheckerboardTest   
)

Definition at line 265 of file laser_cb_detector_unittest.cpp.

◆ TEST() [4/5]

TEST ( LaserCbDetector  ,
reflected_cb_3x4   
)
Todo:
Should I be worried that I need a bigger eps when there's scaling? Seems a little shady

Definition at line 224 of file laser_cb_detector_unittest.cpp.

◆ TEST() [5/5]

TEST ( LaserCbDetector  ,
scaled_cb_3x4   
)
Todo:
Should I be worried that I need a bigger eps when there's scaling? Seems a little shady

Definition at line 200 of file laser_cb_detector_unittest.cpp.

Variable Documentation

◆ DEBUG

const bool DEBUG =false
static

Definition at line 52 of file laser_cb_detector_unittest.cpp.

◆ eps

const double eps = 1e-6
static

Definition at line 50 of file laser_cb_detector_unittest.cpp.

◆ pix_eps_

const double pix_eps_ = .6
static

Definition at line 49 of file laser_cb_detector_unittest.cpp.

◆ test_path

const string test_path = xstr(TEST_PATH)
static

Definition at line 58 of file laser_cb_detector_unittest.cpp.



laser_cb_detector
Author(s): Vijay Pradeep
autogenerated on Tue Mar 1 2022 23:58:55