Function grid_map_visualization::computeLinearMapping

Function Documentation

double grid_map_visualization::computeLinearMapping(const double &sourceValue, const double &sourceLowerValue, const double &sourceUpperValue, const double &mapLowerValue, const double &mapUpperValue)

Computes a linear mapping for a query from the source and to the map.

Parameters:
  • sourceValue – the query from the source.

  • sourceLowerValue – the lower source boundary.

  • sourceUpperValue – the upper source boundary.

  • mapLowerValue – the lower map boundary.

  • mapUpperValue – the upper map boundary.

Returns:

the query mapped to the map.