35 const double& resolution,
36 const Size& bufferSize,
37 const Index& bufferStartIndex = Index::Zero());
54 const double& resolution,
55 const Size& bufferSize,
56 const Index& bufferStartIndex = Index::Zero());
89 const Vector& positionShift,
90 const double& resolution);
102 const Index& indexShift,
103 const double& resolution);
183 Size& submapBufferSize,
186 Index& requestedIndexInSubmap,
187 const Position& requestedSubmapPosition,
188 const Length& requestedSubmapLength,
191 const double& resolution,
192 const Size& bufferSize,
193 const Index& bufferStartIndex = Index::Zero());
202 const Size& bufferSize,
const Index& bufferStartIndex);
215 const Index& submapIndex,
216 const Size& submapBufferSize,
217 const Size& bufferSize,
218 const Index& bufferStartIndex = Index::Zero());
230 const Index& bufferStartIndex = Index::Zero());
249 const Size& submapBufferSize,
const Size& bufferSize,
250 const Index& bufferStartIndex = Index::Zero());
261 const Index& bufferStartIndex);
299 std::vector<Index> indices);
309 std::vector<Index> indices);
317 bool colorValueToVector(
const unsigned long& colorValue, Eigen::Vector3i& colorVector);
325 bool colorValueToVector(
const unsigned long& colorValue, Eigen::Vector3f& colorVector);
341 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())
void getIndicesForRegions(const std::vector< Index > ®ionIndeces, const Size ®ionSizes, std::vector< Index > indices)
bool getIndexFromPosition(Index &index, const Position &position, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
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())
Size getSubmapSizeFromCornerIndeces(const Index &topLeftIndex, const Index &bottomRightIndex, const Size &bufferSize, const Index &bufferStartIndex)
const Eigen::Matrix2i getBufferOrderToMapFrameAlignment()
void getPositionOfDataStructureOrigin(const Position &position, const Length &mapLength, Position &positionOfOrigin)
Index getIndexFromLinearIndex(const size_t linearIndex, const Size &bufferSize, const bool rowMajor=false)
void boundIndexToRange(Index &index, const Size &bufferSize)
bool checkIfIndexInRange(const Index &index, const Size &bufferSize)
size_t getLinearIndexFromIndex(const Index &index, const Size &bufferSize, const bool rowMajor=false)
bool getPositionFromIndex(Position &position, const Index &index, const Length &mapLength, const Position &mapPosition, const double &resolution, const Size &bufferSize, const Index &bufferStartIndex=Index::Zero())
void getIndicesForRegion(const Index ®ionIndex, const Size ®ionSize, std::vector< Index > indices)
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)