Function grid_map::getLayerValue

Function Documentation

double grid_map::getLayerValue(const Matrix &layerMat, int rowReq, int colReq)

Extract the value of the specific layer at the row and column requested. If row and column are out of bounds they will be bound to range.

Parameters:
  • layerMat[in] - matrix of the layer from where the data is extracted

  • rowReq[in] - row requested

  • colReq[in] - column requested

Returns:

- value of the layer at rowReq and colReq