MRPT  1.9.9
CPointsMap_unittest.cpp File Reference
#include <mrpt/maps/CSimplePointsMap.h>
#include <mrpt/maps/CWeightedPointsMap.h>
#include <mrpt/maps/CColouredPointsMap.h>
#include <mrpt/poses/CPoint2D.h>
#include <gtest/gtest.h>
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 ()
 
 TEST (CSimplePointsMapTests, insertPoints)
 
 TEST (CWeightedPointsMapTests, insertPoints)
 
 TEST (CColouredPointsMapTests, insertPoints)
 
 TEST (CSimplePointsMapTests, clipOutOfRangeInZ)
 
 TEST (CWeightedPointsMapTests, clipOutOfRangeInZ)
 
 TEST (CColouredPointsMapTests, clipOutOfRangeInZ)
 
 TEST (CSimplePointsMapTests, clipOutOfRange)
 
 TEST (CWeightedPointsMapTests, clipOutOfRange)
 
 TEST (CColouredPointsMapTests, clipOutOfRange)
 

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 107 of file CPointsMap_unittest.cpp.

References load_demo_9pts_map().

◆ do_test_clipOutOfRangeInZ()

template<class MAP >
void do_test_clipOutOfRangeInZ ( )

Definition at line 79 of file CPointsMap_unittest.cpp.

References load_demo_9pts_map().

◆ do_test_insertPoints()

template<class MAP >
void do_test_insertPoints ( )

Definition at line 37 of file CPointsMap_unittest.cpp.

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

◆ load_demo_9pts_map()

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

◆ TEST() [1/9]

TEST ( CSimplePointsMapTests  ,
insertPoints   
)

Definition at line 143 of file CPointsMap_unittest.cpp.

◆ TEST() [2/9]

TEST ( CWeightedPointsMapTests  ,
insertPoints   
)

Definition at line 148 of file CPointsMap_unittest.cpp.

◆ TEST() [3/9]

TEST ( CColouredPointsMapTests  ,
insertPoints   
)

Definition at line 153 of file CPointsMap_unittest.cpp.

◆ TEST() [4/9]

TEST ( CSimplePointsMapTests  ,
clipOutOfRangeInZ   
)

Definition at line 158 of file CPointsMap_unittest.cpp.

◆ TEST() [5/9]

TEST ( CWeightedPointsMapTests  ,
clipOutOfRangeInZ   
)

Definition at line 163 of file CPointsMap_unittest.cpp.

◆ TEST() [6/9]

TEST ( CColouredPointsMapTests  ,
clipOutOfRangeInZ   
)

Definition at line 168 of file CPointsMap_unittest.cpp.

◆ TEST() [7/9]

TEST ( CSimplePointsMapTests  ,
clipOutOfRange   
)

Definition at line 173 of file CPointsMap_unittest.cpp.

◆ TEST() [8/9]

TEST ( CWeightedPointsMapTests  ,
clipOutOfRange   
)

Definition at line 178 of file CPointsMap_unittest.cpp.

◆ TEST() [9/9]

TEST ( CColouredPointsMapTests  ,
clipOutOfRange   
)

Definition at line 183 of file CPointsMap_unittest.cpp.

Variable Documentation

◆ demo9_N

const size_t demo9_N = 9

Definition at line 23 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 24 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 25 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 26 of file CPointsMap_unittest.cpp.

Referenced by do_test_insertPoints(), and load_demo_9pts_map().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020