Function grid_map_visualization::setSaturationFromValue

Function Documentation

void grid_map_visualization::setSaturationFromValue(std_msgs::msg::ColorRGBA &color, const double value, const double lowerValueBound, const double upperValueBound, const double maxSaturation, const double minSaturation)

Sets the saturation of the color from a scalar value.

Parameters:
  • color[out] the color the be set.

  • value[in] the scalar value.

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

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

  • maxSaturation[in] the maximum saturation.

  • minSaturation[in] the minimum saturation.