| 14 | namespace grid_map { |
| 15 | |
| 16 | LineIterator::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 | |
| 29 | LineIterator::LineIterator(const grid_map::GridMap& gridMap, const Index& start, const Index& end) |
| 30 | { |
nothing calls this directly
no outgoing calls
no test coverage detected