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

Method atPositionBicubicInterpolated

grid_map_core/src/GridMap.cpp:859–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859bool GridMap::atPositionBicubicInterpolated(const std::string& layer, const Position& position,
860 float& value) const
861{
862 double interpolatedValue = 0.0;
863 if (!bicubic::evaluateBicubicInterpolation(*this, layer, position, &interpolatedValue)) {
864 return false;
865 }
866
867 if (!std::isfinite(interpolatedValue)) {
868 return false;
869 }
870 value = interpolatedValue;
871
872 return true;
873
874}
875
876
877} // namespace grid_map

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected