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

Function createSineWorld

grid_map_core/test/test_helpers.cpp:86–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86AnalyticalFunctions createSineWorld(grid_map::GridMap *map)
87{
88
89 AnalyticalFunctions func;
90
91 std::uniform_real_distribution<double> Uw(0.1, 4.0);
92 const double w1 = Uw(rndGenerator);
93 const double w2 = Uw(rndGenerator);
94 const double w3 = Uw(rndGenerator);
95 const double w4 = Uw(rndGenerator);
96
97 func.f_ = [w1,w2,w3,w4](double x,double y) {
98 return std::cos(w1*x) + std::sin(w2*y) + std::cos(w3*x) + std::sin(w4*y);
99 };
100
101 fillGridMap(map, func);
102
103 return func;
104
105}
106
107AnalyticalFunctions createTanhWorld(grid_map::GridMap *map)
108{

Callers 2

TESTFunction · 0.70
TESTFunction · 0.70

Calls 1

fillGridMapFunction · 0.70

Tested by

no test coverage detected