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

Method printStatistics

grid_map_demos/src/InterpolationDemo.cpp:321–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void InterpolationDemo::printStatistics(const Statistics &stats) const
322{
323 std::cout << " \n \n ================================== \n";
324 printf("Interpolated map of size: %f x %f \n", interpolatedMap_.getLength().x(),
325 interpolatedMap_.getLength().y());
326 printf("Resolution of the data: %f, resolution of the interpolated map: %f, \n \n",
327 dataSparseMap_.getResolution(), interpolatedMap_.getResolution());
328
329 for (auto world = worlds.cbegin(); world != worlds.cend(); ++world) {
330 std::cout << "Stats for the world: " << world->first << std::endl;
331 for (auto method = interpolationMethods.cbegin(); method != interpolationMethods.cend();
332 ++method) {
333 Statistic s = stats.at(world->first).at(method->first);
334 printf(
335 "Method: %-20s Mean absolute error: %-10f max error: %-10f avg query duration: %-10f microsec \n",
336 method->first.c_str(), s.error_.meanAbs_, s.error_.max_, s.duration_);
337 }
338 std::cout << std::endl;
339 }
340}
341
342void InterpolationDemo::publishGridMaps() const
343{

Callers

nothing calls this directly

Calls 2

atMethod · 0.80
getResolutionMethod · 0.45

Tested by

no test coverage detected