Functions
SubmapIteratorTest.cpp File Reference
#include "grid_map_core/GridMap.hpp"
#include "grid_map_core/iterators/SubmapIterator.hpp"
#include <Eigen/Core>
#include <gtest/gtest.h>
#include <cfloat>
#include <vector>
Include dependency graph for SubmapIteratorTest.cpp:

Go to the source code of this file.

Functions

 TEST (SubmapIterator, Simple)
 
 TEST (SubmapIterator, CircularBuffer)
 
 TEST (SubmapIterator, InterleavedExecutionWithMove)
 

Function Documentation

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 3Move 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 55 5 5 5 5 5 5 5
6 6 6 6 6 6 6 6 6 66 6 6 6 6 6 6 6
7 7 7 7 7 7 7 7 7 77 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.



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