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

Function runCustomIndexIteration

grid_map_demos/src/iterator_benchmark.cpp:73–84  ·  view source on GitHub ↗

! * For comparison. */

Source from the content-addressed store, hash-verified

71 * For comparison.
72 */
73void runCustomIndexIteration(GridMap& map, const string& layer_from, const string& layer_to)
74{
75 const auto& data_from = map[layer_from];
76 auto& data_to = map[layer_to];
77 for (size_t j = 0; j < data_to.cols(); ++j) {
78 for (size_t i = 0; i < data_to.rows(); ++i) {
79 const float value_from = data_from(i, j);
80 float& value_to = data_to(i, j);
81 value_to = value_to > value_from ? value_to : value_from;
82 }
83 }
84}
85
86/*!
87 * For comparison.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected