| 16 | using namespace grid_map; |
| 17 | |
| 18 | TEST(SignedDistanceField, EmptyMap) |
| 19 | { |
| 20 | GridMap map({"layer"}); |
| 21 | map.setGeometry(Length(1.0, 2.0), 0.1, Position(0.0, 0.0)); |
| 22 | |
| 23 | SignedDistanceField sdf; |
| 24 | sdf.calculateSignedDistanceField(map, "layer", 1.0); |
| 25 | Position3 position(0.0, 0.0, 0.0); |
| 26 | |
| 27 | EXPECT_NO_THROW(sdf.getDistanceAt(position)); |
| 28 | EXPECT_NO_THROW(sdf.getInterpolatedDistanceAt(position)); |
| 29 | EXPECT_NO_THROW(sdf.getDistanceGradientAt(position)); |
| 30 | } |
| 31 | |
| 32 | TEST(SignedDistanceField, GetDistanceFlat) |
| 33 | { |
nothing calls this directly
no test coverage detected