MRPT  2.0.4
Functions | Variables
CPointsMap_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/maps/CColouredPointsMap.h>
#include <mrpt/maps/CPointsMapXYZI.h>
#include <mrpt/maps/CSimplePointsMap.h>
#include <mrpt/maps/CWeightedPointsMap.h>
#include <mrpt/poses/CPoint2D.h>
#include <sstream>
Include dependency graph for CPointsMap_unittest.cpp:

Go to the source code of this file.

Functions

template<class MAP >
void load_demo_9pts_map (MAP &pts)
 
template<class MAP >
void do_test_insertPoints ()
 
template<class MAP >
void do_test_clipOutOfRangeInZ ()
 
template<class MAP >
void do_test_clipOutOfRange ()
 
template<class MAP >
void do_tests_loadSaveStreams ()
 
 TEST (CSimplePointsMapTests, insertPoints)
 
 TEST (CWeightedPointsMapTests, insertPoints)
 
 TEST (CColouredPointsMapTests, insertPoints)
 
 TEST (CPointsMapXYZI, insertPoints)
 
 TEST (CSimplePointsMapTests, clipOutOfRangeInZ)
 
 TEST (CWeightedPointsMapTests, clipOutOfRangeInZ)
 
 TEST (CColouredPointsMapTests, clipOutOfRangeInZ)
 
 TEST (CSimplePointsMapTests, clipOutOfRange)
 
 TEST (CWeightedPointsMapTests, clipOutOfRange)
 
 TEST (CColouredPointsMapTests, clipOutOfRange)
 
 TEST (CSimplePointsMapTests, loadSaveStreams)
 
 TEST (CWeightedPointsMapTests, loadSaveStreams)
 
 TEST (CColouredPointsMapTests, loadSaveStreams)
 

Variables

const size_t demo9_N = 9
 
const float demo9_xs [demo9_N] = {0, 0, 0, 1, 1, 1, 2, 2, 2}
 
const float demo9_ys [demo9_N] = {0, 1, 2, 0, 1, 2, 0, 1, 2}
 
const float demo9_zs [demo9_N] = {0, 1, 2, 0, 1, 2, 0, 1, 2}
 

Function Documentation

◆ do_test_clipOutOfRange()

template<class MAP >
void do_test_clipOutOfRange ( )

Definition at line 109 of file CPointsMap_unittest.cpp.

References EXPECT_EQ(), and load_demo_9pts_map().

Here is the call graph for this function:

◆ do_test_clipOutOfRangeInZ()

template<class MAP >
void do_test_clipOutOfRangeInZ ( )

Definition at line 81 of file CPointsMap_unittest.cpp.

References EXPECT_EQ(), and load_demo_9pts_map().

Here is the call graph for this function:

◆ do_test_insertPoints()

template<class MAP >
void do_test_insertPoints ( )

Definition at line 39 of file CPointsMap_unittest.cpp.

References demo9_N, demo9_xs, demo9_ys, demo9_zs, EXPECT_EQ(), and load_demo_9pts_map().

Here is the call graph for this function:

◆ do_tests_loadSaveStreams()

template<class MAP >
void do_tests_loadSaveStreams ( )

Definition at line 146 of file CPointsMap_unittest.cpp.

References EXPECT_EQ(), EXPECT_TRUE(), and load_demo_9pts_map().

Here is the call graph for this function:

◆ load_demo_9pts_map()

template<class MAP >
void load_demo_9pts_map ( MAP &  pts)

Definition at line 31 of file CPointsMap_unittest.cpp.

References demo9_N, demo9_xs, demo9_ys, and demo9_zs.

Referenced by do_test_clipOutOfRange(), do_test_clipOutOfRangeInZ(), do_test_insertPoints(), and do_tests_loadSaveStreams().

Here is the caller graph for this function:

◆ TEST() [1/13]

TEST ( CSimplePointsMapTests  ,
insertPoints   
)

Definition at line 205 of file CPointsMap_unittest.cpp.

◆ TEST() [2/13]

TEST ( CWeightedPointsMapTests  ,
insertPoints   
)

Definition at line 210 of file CPointsMap_unittest.cpp.

◆ TEST() [3/13]

TEST ( CColouredPointsMapTests  ,
insertPoints   
)

Definition at line 215 of file CPointsMap_unittest.cpp.

◆ TEST() [4/13]

TEST ( CPointsMapXYZI  ,
insertPoints   
)

Definition at line 220 of file CPointsMap_unittest.cpp.

◆ TEST() [5/13]

TEST ( CSimplePointsMapTests  ,
clipOutOfRangeInZ   
)

Definition at line 222 of file CPointsMap_unittest.cpp.

◆ TEST() [6/13]

TEST ( CWeightedPointsMapTests  ,
clipOutOfRangeInZ   
)

Definition at line 227 of file CPointsMap_unittest.cpp.

◆ TEST() [7/13]

TEST ( CColouredPointsMapTests  ,
clipOutOfRangeInZ   
)

Definition at line 232 of file CPointsMap_unittest.cpp.

◆ TEST() [8/13]

TEST ( CSimplePointsMapTests  ,
clipOutOfRange   
)

Definition at line 237 of file CPointsMap_unittest.cpp.

◆ TEST() [9/13]

TEST ( CWeightedPointsMapTests  ,
clipOutOfRange   
)

Definition at line 242 of file CPointsMap_unittest.cpp.

◆ TEST() [10/13]

TEST ( CColouredPointsMapTests  ,
clipOutOfRange   
)

Definition at line 247 of file CPointsMap_unittest.cpp.

◆ TEST() [11/13]

TEST ( CSimplePointsMapTests  ,
loadSaveStreams   
)

Definition at line 252 of file CPointsMap_unittest.cpp.

◆ TEST() [12/13]

TEST ( CWeightedPointsMapTests  ,
loadSaveStreams   
)

Definition at line 257 of file CPointsMap_unittest.cpp.

◆ TEST() [13/13]

TEST ( CColouredPointsMapTests  ,
loadSaveStreams   
)

Definition at line 262 of file CPointsMap_unittest.cpp.

Variable Documentation

◆ demo9_N

const size_t demo9_N = 9

Definition at line 25 of file CPointsMap_unittest.cpp.

Referenced by do_test_insertPoints(), and load_demo_9pts_map().

◆ demo9_xs

const float demo9_xs[demo9_N] = {0, 0, 0, 1, 1, 1, 2, 2, 2}

Definition at line 26 of file CPointsMap_unittest.cpp.

Referenced by do_test_insertPoints(), and load_demo_9pts_map().

◆ demo9_ys

const float demo9_ys[demo9_N] = {0, 1, 2, 0, 1, 2, 0, 1, 2}

Definition at line 27 of file CPointsMap_unittest.cpp.

Referenced by do_test_insertPoints(), and load_demo_9pts_map().

◆ demo9_zs

const float demo9_zs[demo9_N] = {0, 1, 2, 0, 1, 2, 0, 1, 2}

Definition at line 28 of file CPointsMap_unittest.cpp.

Referenced by do_test_insertPoints(), and load_demo_9pts_map().




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020