Function grid_map_visualization::setColorFromValue

Function Documentation

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

Set the color from the rainbow color spectrum based on 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.