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

Method LineIterator

grid_map_core/src/iterators/LineIterator.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace grid_map {
15
16LineIterator::LineIterator(const grid_map::GridMap& gridMap, const Position& start,
17 const Position& end)
18{
19 Index startIndex, endIndex;
20 if (getIndexLimitedToMapRange(gridMap, start, end, startIndex)
21 && getIndexLimitedToMapRange(gridMap, end, start, endIndex)) {
22 initialize(gridMap, startIndex, endIndex);
23 }
24 else {
25 throw std::invalid_argument("Failed to construct LineIterator.");
26 }
27}
28
29LineIterator::LineIterator(const grid_map::GridMap& gridMap, const Index& start, const Index& end)
30{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected