14 #include <gtest/gtest.h> 19 TEST(CubicConvolutionInterpolation, FlatWorld)
21 const int seed = rand();
29 if (::testing::Test::HasFailure()) {
30 std::cout <<
"\n Test CubicConvolutionInterpolation, FlatWorld failed with seed: " << seed
35 TEST(CubicConvolutionInterpolation, RationalFunctionWorld)
37 const int seed = rand();
45 if (::testing::Test::HasFailure()) {
46 std::cout <<
"\n Test CubicConvolutionInterpolation, RationalFunctionWorld failed with seed: " 51 TEST(CubicConvolutionInterpolation, SaddleWorld)
53 const int seed = rand();
61 if (::testing::Test::HasFailure()) {
62 std::cout <<
"\n Test CubicConvolutionInterpolation, SaddleWorld failed with seed: " << seed
67 TEST(CubicConvolutionInterpolation, SecondOrderPolyWorld)
69 const int seed = rand();
77 if (::testing::Test::HasFailure()) {
78 std::cout <<
"\n Test CubicConvolutionInterpolation, SecondOrderPolyWorld failed with seed: " 83 TEST(CubicConvolutionInterpolation, SineWorld)
85 const int seed = rand();
93 if (::testing::Test::HasFailure()) {
94 std::cout <<
"\n Test CubicConvolutionInterpolation, SineWorld failed with seed: " << seed
99 TEST(CubicConvolutionInterpolation, TanhWorld)
101 const int seed = rand();
109 if (::testing::Test::HasFailure()) {
110 std::cout <<
"\n Test CubicConvolutionInterpolation, TanhWorld failed with seed: " << seed
115 TEST(CubicConvolutionInterpolation, GaussianWorld)
117 const int seed = rand();
125 if (::testing::Test::HasFailure()) {
126 std::cout <<
"\n Test CubicConvolutionInterpolation, GaussianWorld failed with seed: " << seed
std::mt19937 rndGenerator
AnalyticalFunctions createSaddleWorld(grid_map::GridMap *map)
AnalyticalFunctions createTanhWorld(grid_map::GridMap *map)
AnalyticalFunctions createRationalFunctionWorld(grid_map::GridMap *map)
std::vector< Point2D > uniformlyDitributedPointsWithinMap(const grid_map::GridMap &map, unsigned int numPoints)
AnalyticalFunctions createSineWorld(grid_map::GridMap *map)
grid_map::GridMap createMap(const grid_map::Length &length, double resolution, const grid_map::Position &pos)
AnalyticalFunctions createGaussianWorld(grid_map::GridMap *map)
AnalyticalFunctions createSecondOrderPolyWorld(grid_map::GridMap *map)
void verifyValuesAtQueryPointsAreClose(const grid_map::GridMap &map, const AnalyticalFunctions &trueValues, const std::vector< Point2D > &queryPoints, grid_map::InterpolationMethods interpolationMethod)
TEST(CubicConvolutionInterpolation, FlatWorld)
AnalyticalFunctions createFlatWorld(grid_map::GridMap *map)