Macros | Typedefs | Functions
iterator_benchmark.cpp File Reference
#include <grid_map_core/grid_map_core.hpp>
#include <chrono>
#include <iostream>
Include dependency graph for iterator_benchmark.cpp:

Go to the source code of this file.

Macros

#define duration(a)   duration_cast<milliseconds>(a).count()
 

Typedefs

typedef high_resolution_clock clk
 

Functions

int main ()
 
void runCustomIndexIteration (GridMap &map, const string &layer_from, const string &layer_to)
 
void runCustomLinearIndexIteration (GridMap &map, const string &layer_from, const string &layer_to)
 
void runEigenFunction (GridMap &map, const string &layer_from, const string &layer_to)
 
void runGridMapIteratorVersion1 (GridMap &map, const string &layer_from, const string &layer_to)
 
void runGridMapIteratorVersion2 (GridMap &map, const string &layer_from, const string &layer_to)
 
void runGridMapIteratorVersion3 (GridMap &map, const string &layer_from, const string &layer_to)
 

Macro Definition Documentation

#define duration (   a)    duration_cast<milliseconds>(a).count()

Definition at line 16 of file iterator_benchmark.cpp.

Typedef Documentation

typedef high_resolution_clock clk

Definition at line 17 of file iterator_benchmark.cpp.

Function Documentation

int main ( )

Definition at line 98 of file iterator_benchmark.cpp.

void runCustomIndexIteration ( GridMap map,
const string &  layer_from,
const string &  layer_to 
)

For comparison.

Definition at line 73 of file iterator_benchmark.cpp.

void runCustomLinearIndexIteration ( GridMap map,
const string &  layer_from,
const string &  layer_to 
)

For comparison.

Definition at line 89 of file iterator_benchmark.cpp.

void runEigenFunction ( GridMap map,
const string &  layer_from,
const string &  layer_to 
)

Whenever possible, make use of the Eigen methods for maximum efficiency and readability.

Definition at line 65 of file iterator_benchmark.cpp.

void runGridMapIteratorVersion1 ( GridMap map,
const string &  layer_from,
const string &  layer_to 
)

Convenient use of iterator.

Definition at line 22 of file iterator_benchmark.cpp.

void runGridMapIteratorVersion2 ( GridMap map,
const string &  layer_from,
const string &  layer_to 
)

Improved efficiency by storing direct access to data layers.

Definition at line 34 of file iterator_benchmark.cpp.

void runGridMapIteratorVersion3 ( GridMap map,
const string &  layer_from,
const string &  layer_to 
)

Improved efficiency by using linear index.

Definition at line 49 of file iterator_benchmark.cpp.



grid_map_demos
Author(s): Péter Fankhauser
autogenerated on Tue Jun 1 2021 02:13:55