#include "grid_map_core/GridMap.hpp"
#include "grid_map_core/iterators/SubmapIterator.hpp"
#include <Eigen/Core>
#include <gtest/gtest.h>
#include <cfloat>
#include <vector>
Go to the source code of this file.
Functions | |
TEST (SubmapIterator, Simple) | |
TEST (SubmapIterator, CircularBuffer) | |
TEST (SubmapIterator, InterleavedExecutionWithMove) | |
TEST | ( | SubmapIterator | , |
Simple | |||
) |
Definition at line 28 of file SubmapIteratorTest.cpp.
TEST | ( | SubmapIterator | , |
CircularBuffer | |||
) |
Definition at line 90 of file SubmapIteratorTest.cpp.
TEST | ( | SubmapIterator | , |
InterleavedExecutionWithMove | |||
) |
The submap should contain the same elements as before even after moving the underlying map.
+----------------------------+ | | | | +----------------------------+ | | |0 0 0 0 0 0 0 0 0 0| | 0 0 0 0 0 0 0 0| | +----+ | | +----+ |
Submap |1 1 |1 1| 1 1 1 1 1 1| | 1 1 |1 1| 1 1 1 1| +---—> | | | | | | | |2 2 |2 2| 2 2 2 2 2 2| | 2 2 |2 2| 2 2 2 2| | +-—+ | | +-—+ |
3 3 3 3 3 3 3 3 3 3 | Move | 3 3 3 3 3 3 3 3 |
---|---|---|
4 4 4 4 4 4 4 4 4 4 | +------—> | 4 4 4 4 4 4 4 4 |
5 5 5 5 5 5 5 5 5 5 | 5 5 5 5 5 5 5 5 | |
6 6 6 6 6 6 6 6 6 6 | 6 6 6 6 6 6 6 6 | |
7 7 7 7 7 7 7 7 7 7 | 7 7 7 7 7 7 7 7 |
| | +-------------------------—+
8 8 8 8 8 8 8 8 8 8 |
---|
9 9 9 9 9 9 9 9 9 9 |
+-------------------------—+
Definition at line 195 of file SubmapIteratorTest.cpp.