| 14 | namespace grid_map { |
| 15 | |
| 16 | unsigned int bindIndexToRange(int idReq, unsigned int nElem) |
| 17 | { |
| 18 | if (idReq < 0) { |
| 19 | return 0; |
| 20 | } |
| 21 | if (idReq >= nElem) { |
| 22 | return static_cast<unsigned int>(nElem - 1); |
| 23 | } |
| 24 | return static_cast<unsigned int>(idReq); |
| 25 | } |
| 26 | |
| 27 | double getLayerValue(const Matrix &layerMat, int rowReq, int colReq) |
| 28 | { |
no outgoing calls
no test coverage detected