41 const double& resolution,
42 const Size& bufferSize,
43 const Index& bufferStartIndex = Index::Zero());
60 const double& resolution,
61 const Size& bufferSize,
62 const Index& bufferStartIndex = Index::Zero());
95 const Vector& positionShift,
96 const double& resolution);
108 const Index& indexShift,
109 const double& resolution);
189 Size& submapBufferSize,
192 Index& requestedIndexInSubmap,
193 const Position& requestedSubmapPosition,
194 const Length& requestedSubmapLength,
197 const double& resolution,
198 const Size& bufferSize,
199 const Index& bufferStartIndex = Index::Zero());
208 const Size& bufferSize,
const Index& bufferStartIndex);
221 const Index& submapIndex,
222 const Size& submapBufferSize,
223 const Size& bufferSize,
224 const Index& bufferStartIndex = Index::Zero());
236 const Index& bufferStartIndex = Index::Zero());
255 const Size& submapBufferSize,
const Size& bufferSize,
256 const Index& bufferStartIndex = Index::Zero());
267 const Index& bufferStartIndex);
304 bool colorValueToVector(
const unsigned long& colorValue, Eigen::Vector3i& colorVector);
312 bool colorValueToVector(
const unsigned long& colorValue, Eigen::Vector3f& colorVector);
328 bool colorVectorToValue(
const Eigen::Vector3i& colorVector,
unsigned long& colorValue);
bool incrementIndexForSubmap(Index &submapIndex, Index &index, const Index &submapTopLeftIndex, const Size &submapBufferSize, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
void wrapIndexToRange(Index &index, const Size &bufferSize)
bool getBufferRegionsForSubmap(std::vector< BufferRegion > &submapBufferRegions, const Index &submapIndex, const Size &submapBufferSize, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
Index getIndexFromBufferIndex(const Index &bufferIndex, const Size &bufferSize, const Index &bufferStartIndex)
bool getSubmapInformation(Index &submapTopLeftIndex, Size &submapBufferSize, Position &submapPosition, Length &submapLength, Index &requestedIndexInSubmap, const Position &requestedSubmapPosition, const Length &requestedSubmapLength, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
size_t getLinearIndexFromIndex(const Index &index, const Size &bufferSize, bool rowMajor=false)
bool getIndexFromPosition(Index &index, const Position &position, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
Size getSubmapSizeFromCornerIndices(const Index &topLeftIndex, const Index &bottomRightIndex, const Size &bufferSize, const Index &bufferStartIndex)
bool checkIfPositionWithinMap(const Position &position, const Length &mapLength, const Position &mapPosition)
bool getPositionShiftFromIndexShift(Vector &positionShift, const Index &indexShift, const double &resolution)
bool colorVectorToValue(const Eigen::Vector3i &colorVector, unsigned long &colorValue)
bool incrementIndex(Index &index, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
void getPositionOfDataStructureOrigin(const Position &position, const Length &mapLength, Position &positionOfOrigin)
void boundIndexToRange(Index &index, const Size &bufferSize)
bool checkIfIndexInRange(const Index &index, const Size &bufferSize)
bool getPositionFromIndex(Position &position, const Index &index, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
Index getBufferIndexFromIndex(const Index &index, const Size &bufferSize, const Index &bufferStartIndex)
void boundPositionToRange(Position &position, const Length &mapLength, const Position &mapPosition)
bool colorValueToVector(const unsigned long &colorValue, Eigen::Vector3i &colorVector)
bool getIndexShiftFromPositionShift(Index &indexShift, const Vector &positionShift, const double &resolution)
Eigen::Matrix2i getBufferOrderToMapFrameAlignment()
Index getIndexFromLinearIndex(size_t linearIndex, const Size &bufferSize, bool rowMajor=false)