MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / TEST

Function TEST

grid_map_core/test/CubicConvolutionInterpolationTest.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace gmt = grid_map_test;
18
19TEST(CubicConvolutionInterpolation, FlatWorld)
20{
21 const int seed = rand();
22 gmt::rndGenerator.seed(seed);
23 auto map = gmt::createMap(gm::Length(2.0, 2.0), 0.1, gm::Position(0.0, 0.0));
24 auto trueValues = gmt::createFlatWorld(&map);
25 const auto queryPoints = gmt::uniformlyDitributedPointsWithinMap(map, 100);
26
27 verifyValuesAtQueryPointsAreClose(map, trueValues, queryPoints, gm::InterpolationMethods::INTER_CUBIC_CONVOLUTION);
28
29 if (::testing::Test::HasFailure()) {
30 std::cout << "\n Test CubicConvolutionInterpolation, FlatWorld failed with seed: " << seed
31 << std::endl;
32 }
33}
34
35TEST(CubicConvolutionInterpolation, RationalFunctionWorld)
36{

Callers

nothing calls this directly

Calls 10

createFlatWorldFunction · 0.85
createSaddleWorldFunction · 0.85
createMapFunction · 0.70
createSineWorldFunction · 0.70
createTanhWorldFunction · 0.70
createGaussianWorldFunction · 0.70

Tested by

no test coverage detected