13 #include <visualization_msgs/MarkerArray.h> 14 #include <std_msgs/ColorRGBA.h> 42 void setColorFromColorValue(std_msgs::ColorRGBA& color,
const unsigned long& colorValue,
bool resetTransparency =
true);
55 const double upperValueBound,
const bool invert =
false,
const double colorChannelLowerValue = 0.0,
56 const double colorChannelUpperValue = 1.0);
68 const std_msgs::ColorRGBA& colorForUpperValue,
const double value,
69 const double lowerValueBound,
const double upperValueBound);
81 const double upperValueBound,
const double maxSaturation,
const double minSaturation);
90 void setColorFromValue(std_msgs::ColorRGBA& color,
const double value,
const double lowerValueBound,
91 const double upperValueBound);
103 const double& sourceValue,
const double& sourceLowerValue,
const double& sourceUpperValue,
104 const double& mapLowerValue,
const double& mapUpperValue);
void interpolateBetweenColors(std_msgs::ColorRGBA &color, const std_msgs::ColorRGBA &colorForLowerValue, const std_msgs::ColorRGBA &colorForUpperValue, const double value, const double lowerValueBound, const double upperValueBound)
void setSaturationFromValue(std_msgs::ColorRGBA &color, const double value, const double lowerValueBound, const double upperValueBound, const double maxSaturation, const double minSaturation)
void setColorFromValue(std_msgs::ColorRGBA &color, const double value, const double lowerValueBound, const double upperValueBound)
void 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)
void getColorVectorFromColorMessage(Eigen::Vector3f &colorVector, const std_msgs::ColorRGBA &colorMessage)
void setColorFromColorValue(std_msgs::ColorRGBA &color, const unsigned long &colorValue, bool resetTransparency=true)
void getColorMessageFromColorVector(std_msgs::ColorRGBA &colorMessage, const Eigen::Vector3f &colorVector, bool resetTransparency=true)
double computeLinearMapping(const double &sourceValue, const double &sourceLowerValue, const double &sourceUpperValue, const double &mapLowerValue, const double &mapUpperValue)