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

Function verifyValuesAtQueryPointsAreClose

grid_map_core/test/test_helpers.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void verifyValuesAtQueryPointsAreClose(const grid_map::GridMap &map, const AnalyticalFunctions &trueValues,
213 const std::vector<Point2D> &queryPoints,
214 grid_map::InterpolationMethods interpolationMethod){
215 for (const auto point : queryPoints) {
216 const grid_map::Position p(point.x_, point.y_);
217 const double trueValue = trueValues.f_(p.x(), p.y());
218 const double interpolatedValue = map.atPosition(
219 grid_map_test::testLayer, p, interpolationMethod);
220 EXPECT_NEAR(trueValue, interpolatedValue, grid_map_test::maxAbsErrorValue);
221 }
222}
223
224
225} /* namespace grid_map_test */

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 1

atPositionMethod · 0.80

Tested by

no test coverage detected