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"; }
Same as rviz::MapDisplay map palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f447159...
bool hasTransparency() const override
See if the palette has any transparent colors.
std::string getName() const override
Unique descriptive name for this particular palette.
color_util::ColorHSVA changeColorspace(const color_util::ColorRGBA &rgba)
std::string getName() const override
Unique descriptive name for this particular palette.
bool hasTransparency() const override
See if the palette has any transparent colors.
Palette with a gradient of blues from dark to light.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
Same as rviz::MapDisplay raw palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f447159...
bool hasTransparency() const override
See if the palette has any transparent 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.
std::string getName() const override
Unique descriptive name for this particular palette.
static const unsigned int NUM_COLORS
std::vector< ColorRGBA24 > getColors() const override
The actual definition of the colors.
Easy class to generate palettes that simply blend two colors together.
const std::vector< ColorRGBA24 > & getNamedColors()
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::string getName() const override
Unique descriptive name for this particular palette.
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.
Several reusable pieces for displaying polygons.
Rainbow hued palette from red to purple with transparent 0.
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 purple to red with transparent 0.
List of distinct colors for displaying individual categories.
std::string getName() const override
Unique descriptive name for this particular palette.
color_util::ColorRGBA24 toInt(const color_util::ColorRGBA &float_color)
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.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)