Go to the documentation of this file.
54 std::string
getName()
const override {
return "map"; }
60 for (
int i = 0; i <= 100; i++)
62 unsigned char v = 255 - (255 * i) / 100;
66 for (
int i = 101; i <= 127; i++)
71 for (
int i = 128; i <= 254; i++)
73 colors[i] =
ColorRGBA24(255, (255 * (i - 128)) / (254 - 128), 0);
89 std::string
getName()
const override {
return "costmap"; }
99 for (
int i = 1; i <= 98; i++)
101 unsigned char v = (255 * i) / 100;
112 for (
int i = 101; i <= 127; i++)
118 for (
int i = 128; i <= 254; i++)
120 colors[i] =
ColorRGBA24(255, (255 * (i - 128)) / (254 - 128), 0);
137 std::string
getName()
const override {
return "raw"; }
156 std::string
getName()
const override {
return "rainbow"; }
164 double fraction =
static_cast<double>(255 - i) / 254;
179 std::string
getName()
const override {
return "rainbow2"; }
187 double fraction =
static_cast<double>(i - 1) / 254;
205 std::string
getName()
const override {
return "blues"; }
214 std::string
getName()
const override {
return "distinct"; }
bool hasTransparency() const override
See if the palette has any transparent colors.
std::string getName() const override
Unique descriptive name for this particular palette.
Several reusable pieces for displaying polygons.
std::string getName() const override
Unique descriptive name for this particular palette.
Same as rviz::MapDisplay raw palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f447159...
std::string getName() const override
Unique descriptive name for this particular palette.
bool hasTransparency() const override
See if the palette has any transparent colors.
std::string getName() const override
Unique descriptive name for this particular palette.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
Rainbow hued palette from red to purple with transparent 0.
const std::vector< ColorRGBA24 > & getNamedColors()
static const unsigned int NUM_COLORS
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
bool hasTransparency() const override
See if the palette has any transparent colors.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
bool hasTransparency() const override
See if the palette has any transparent colors.
Rainbow hued palette from purple to red with transparent 0.
Easy class to generate palettes that simply blend two colors together.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
std::string getName() const override
Unique descriptive name for this particular palette.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
std::string getName() const override
Unique descriptive name for this particular palette.
List of distinct colors for displaying individual categories.
bool hasTransparency() const override
See if the palette has any transparent colors.
Same as rviz::MapDisplay costmap palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f44...
bool hasTransparency() const override
See if the palette has any transparent colors.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
A simple datastructure representing a palette of up to 256 24-bit colors.
Palette with a gradient of blues from dark to light.
color_util::ColorHSVA24 toInt(const color_util::ColorHSVA &float_color)
Same as rviz::MapDisplay map palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f447159...
color_util::ColorRGBA changeColorspace(const color_util::ColorHSVA &hsva)
std::string getName() const override
Unique descriptive name for this particular palette.