Functions
utest.cpp File Reference
#include <gtest/gtest.h>
#include <nav_grid/vector_nav_grid.h>
#include <nav_grid/coordinate_conversion.h>
#include <algorithm>
Include dependency graph for utest.cpp:

Go to the source code of this file.

Functions

void checkSetGridValues (const nav_grid::VectorNavGrid< int > &grid, unsigned int x0, unsigned int x1, unsigned int y0, unsigned int y1)
 
void checkUpdateGridValues (const nav_grid::VectorNavGrid< int > &grid, unsigned int x0, unsigned int x1, unsigned int y0, unsigned int y1)
 
void debugGridValues (const nav_grid::VectorNavGrid< int > &grid)
 
void initializeTestGrid (nav_grid::VectorNavGrid< int > &grid)
 
int main (int argc, char **argv)
 
 TEST (VectorNavGrid, info_equality)
 
 TEST (VectorNavGrid, basic_test)
 
 TEST (VectorNavGrid, basic_index_test)
 
 TEST (VectorNavGrid, easy_coordinates_test)
 
 TEST (VectorNavGrid, hard_coordinates_test)
 
 TEST (VectorNavGrid, speed_test)
 
 TEST (VectorNavGrid, resizing_grid_with_set)
 
 TEST (VectorNavGrid, resizing_grid_with_update)
 
 TEST (VectorNavGrid, change_origin)
 
 TEST (VectorNavGrid, combined_changes)
 
 TEST (Index, comparison_tests)
 
int testGridValue (double x, double y)
 

Function Documentation

void checkSetGridValues ( const nav_grid::VectorNavGrid< int > &  grid,
unsigned int  x0,
unsigned int  x1,
unsigned int  y0,
unsigned int  y1 
)

Check to make sure all the grid values are now the same based on their grid coordinates

Definition at line 282 of file utest.cpp.

void checkUpdateGridValues ( const nav_grid::VectorNavGrid< int > &  grid,
unsigned int  x0,
unsigned int  x1,
unsigned int  y0,
unsigned int  y1 
)

Check to make sure all the grid values are now the same based on their world coordinates

Definition at line 304 of file utest.cpp.

void debugGridValues ( const nav_grid::VectorNavGrid< int > &  grid)

Definition at line 325 of file utest.cpp.

void initializeTestGrid ( nav_grid::VectorNavGrid< int > &  grid)

Initialize Grid Values with values based on the grid/world coordinates which are initially the same

x –> 000 100 200 300 400 500 600 700 800 900 y 001 101 201 301 401 501 601 701 801 901 | 002 102 202 302 402 502 602 702 802 902 | 003 103 203 303 403 503 603 703 803 903 V 004 104 204 304 404 504 604 704 804 904

Definition at line 261 of file utest.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 518 of file utest.cpp.

TEST ( VectorNavGrid  ,
info_equality   
)

Definition at line 39 of file utest.cpp.

TEST ( VectorNavGrid  ,
basic_test   
)

Definition at line 72 of file utest.cpp.

TEST ( VectorNavGrid  ,
basic_index_test   
)

Definition at line 85 of file utest.cpp.

TEST ( VectorNavGrid  ,
easy_coordinates_test   
)

Definition at line 102 of file utest.cpp.

TEST ( VectorNavGrid  ,
hard_coordinates_test   
)

Definition at line 159 of file utest.cpp.

TEST ( VectorNavGrid  ,
speed_test   
)

Definition at line 200 of file utest.cpp.

TEST ( VectorNavGrid  ,
resizing_grid_with_set   
)

Definition at line 338 of file utest.cpp.

TEST ( VectorNavGrid  ,
resizing_grid_with_update   
)

Definition at line 368 of file utest.cpp.

TEST ( VectorNavGrid  ,
change_origin   
)

Definition at line 398 of file utest.cpp.

TEST ( VectorNavGrid  ,
combined_changes   
)

Definition at line 431 of file utest.cpp.

TEST ( Index  ,
comparison_tests   
)

Definition at line 468 of file utest.cpp.

int testGridValue ( double  x,
double  y 
)

Definition at line 244 of file utest.cpp.



nav_grid
Author(s):
autogenerated on Sun Jan 10 2021 04:08:26