| 105 | } |
| 106 | |
| 107 | AnalyticalFunctions createTanhWorld(grid_map::GridMap *map) |
| 108 | { |
| 109 | |
| 110 | AnalyticalFunctions func; |
| 111 | |
| 112 | std::uniform_real_distribution<double> scaling(0.1, 2.0); |
| 113 | const double s = scaling(rndGenerator); |
| 114 | func.f_ = [s](double x,double y) { |
| 115 | const double expZ = std::exp(2 *s* x); |
| 116 | return (expZ - 1) / (expZ + 1); |
| 117 | }; |
| 118 | |
| 119 | fillGridMap(map, func); |
| 120 | |
| 121 | return func; |
| 122 | } |
| 123 | |
| 124 | AnalyticalFunctions createGaussianWorld(grid_map::GridMap *map) |
| 125 | { |
no test coverage detected