| 857 | } |
| 858 | |
| 859 | bool 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 |
nothing calls this directly
no test coverage detected