Function grid_map_visualization::interpolateBetweenColors

Function Documentation

void grid_map_visualization::interpolateBetweenColors(std_msgs::msg::ColorRGBA &color, const std_msgs::msg::ColorRGBA &colorForLowerValue, const std_msgs::msg::ColorRGBA &colorForUpperValue, const double value, const double lowerValueBound, const double upperValueBound)

Sets the color to the interpolation between two colors based on a scalar value.

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

  • colorForLowerValue[in] the color for the lower value boundary.

  • colorForUpperValue[in] the color for the upper value boundary.

  • value[in] the scalar value.

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

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