Function grid_map_visualization::setColorChannelFromValue

Function Documentation

void grid_map_visualization::setColorChannelFromValue(float &colorChannel, const double value, const double lowerValueBound, const double upperValueBound, const bool invert = false, const double colorChannelLowerValue = 0.0, const double colorChannelUpperValue = 1.0)

Set the color channel from a scalar value.

Parameters:
  • colorChannel[out] the color channel to be set.

  • value[in] the scalar value.

  • lowerValueBound[in] the lower boundary of the value.

  • upperValueBound[in] the upper boundary of the value.

  • invert[in] if interpolation should be inverted.

  • colorChannelLowerValue[in] the lower value for the color channel.

  • colorChannelUpperValue[in] the upper value for the color channel.