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

Function createTanhWorld

grid_map_core/test/test_helpers.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107AnalyticalFunctions 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
124AnalyticalFunctions createGaussianWorld(grid_map::GridMap *map)
125{

Callers 2

TESTFunction · 0.70
TESTFunction · 0.70

Calls 1

fillGridMapFunction · 0.70

Tested by

no test coverage detected