#include <gtest/gtest.h>
#include <nav_grid/vector_nav_grid.h>
#include <nav_grid/coordinate_conversion.h>
#include <algorithm>
Go to the source code of this file.
|
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) |
|
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.
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 |
|
) |
| |
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 |
|
) |
| |