Functions | Variables
monocam_settler_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <monocam_settler/ConfigGoal.h>
#include <monocam_settler/monocam_settler.h>
Include dependency graph for monocam_settler_unittest.cpp:

Go to the source code of this file.

Functions

vector
< calibration_msgs::Interval > 
addToSettler (MonocamSettler &settler, unsigned int time_channel, bool always_success)
ConfigGoal config1 ()
ConfigGoal config2 (bool ignore_failures)
void doCatchFailuresCheck (const vector< calibration_msgs::Interval > &intervals)
void doEasyCheck (const vector< calibration_msgs::Interval > &intervals)
void doIgnoreFailuresCheck (const vector< calibration_msgs::Interval > &intervals)
int main (int argc, char **argv)
 TEST (MonocamSettler, easyCheck)
 TEST (MonocamSettler, ignoreFailuresCheck)
 TEST (MonocamSettler, catchFailuresCheck)
 TEST (MonocamSettler, reconfigureCheck)

Variables

static const unsigned int C = 2
static const double data [N][2 *C]
static const unsigned int N = 9
static const bool success [N]
static const unsigned int times [N][2]

Function Documentation

vector<calibration_msgs::Interval> addToSettler ( MonocamSettler settler,
unsigned int  time_channel,
bool  always_success 
)

Definition at line 80 of file monocam_settler_unittest.cpp.

ConfigGoal config1 ( )

Definition at line 201 of file monocam_settler_unittest.cpp.

ConfigGoal config2 ( bool  ignore_failures)

Definition at line 216 of file monocam_settler_unittest.cpp.

void doCatchFailuresCheck ( const vector< calibration_msgs::Interval > &  intervals)

Definition at line 170 of file monocam_settler_unittest.cpp.

void doEasyCheck ( const vector< calibration_msgs::Interval > &  intervals)

Definition at line 108 of file monocam_settler_unittest.cpp.

void doIgnoreFailuresCheck ( const vector< calibration_msgs::Interval > &  intervals)

Definition at line 139 of file monocam_settler_unittest.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 286 of file monocam_settler_unittest.cpp.

TEST ( MonocamSettler  ,
easyCheck   
)

Definition at line 231 of file monocam_settler_unittest.cpp.

TEST ( MonocamSettler  ,
ignoreFailuresCheck   
)

Definition at line 243 of file monocam_settler_unittest.cpp.

TEST ( MonocamSettler  ,
catchFailuresCheck   
)

Definition at line 255 of file monocam_settler_unittest.cpp.

TEST ( MonocamSettler  ,
reconfigureCheck   
)

Definition at line 267 of file monocam_settler_unittest.cpp.


Variable Documentation

const unsigned int C = 2 [static]

Definition at line 46 of file monocam_settler_unittest.cpp.

const double data[N][2 *C] [static]
Initial value:
 { {  0, 0, 0, 0 },
                                     {  1, 2, 1, 1 },
                                     {  2, 4, 0, 0 },
                                     {  3, 6, 1, 1 },
                                     {  4, 8, 0, 0 },
                                     {  0, 0, 1, 1 },
                                     {  4, 1, 0, 0 },
                                     {  8, 2, 1, 1 },
                                     { 12, 3, 0, 0 }}

Definition at line 48 of file monocam_settler_unittest.cpp.

const unsigned int N = 9 [static]

Definition at line 45 of file monocam_settler_unittest.cpp.

const bool success[N] [static]
Initial value:
 { true,
                                 true,
                                 false,
                                 true,
                                 true,
                                 true,
                                 true,
                                 true,
                                 true }

Definition at line 69 of file monocam_settler_unittest.cpp.

const unsigned int times[N][2] [static]
Initial value:
 { { 0,  0 },
                                          { 1,  1 },
                                          { 2,  2 },
                                          { 3,  3 },
                                          { 4,  4 },
                                          { 5, 15 },
                                          { 6, 16 },
                                          { 7, 17 },
                                          { 8, 18 } }

Definition at line 59 of file monocam_settler_unittest.cpp.



monocam_settler
Author(s): Vijay Pradeep
autogenerated on Wed Aug 26 2015 10:56:14