Public Member Functions | List of all members
robot_nav_rviz_plugins::CostmapPalette Class Reference

Same as rviz::MapDisplay costmap palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f447159044bfaa633e140e6094b19516b02/src/rviz/default_plugin/map_display.cpp#324. More...

Inheritance diagram for robot_nav_rviz_plugins::CostmapPalette:
Inheritance graph
[legend]

Public Member Functions

std::vector< ColorRGBA24getColors () const override
 The actual definition of the colors. More...
 
std::string getName () const override
 Unique descriptive name for this particular palette. More...
 
bool hasTransparency () const override
 See if the palette has any transparent colors. More...
 
- Public Member Functions inherited from robot_nav_rviz_plugins::NavGridPalette
virtual ~NavGridPalette ()
 

Additional Inherited Members

- Static Public Attributes inherited from robot_nav_rviz_plugins::NavGridPalette
static const unsigned int NUM_CHANNELS = 4
 
static const unsigned int NUM_COLORS = 256
 

Detailed Description

Same as rviz::MapDisplay costmap palette. See https://github.com/ros-visualization/rviz/blob/4b6c0f447159044bfaa633e140e6094b19516b02/src/rviz/default_plugin/map_display.cpp#324.

Definition at line 86 of file basic_palettes.cpp.

Member Function Documentation

std::vector<ColorRGBA24> robot_nav_rviz_plugins::CostmapPalette::getColors ( ) const
inlineoverridevirtual

The actual definition of the colors.

Returns
vector of up to 256 colors. Undefined behavior if more are returned.

Implements robot_nav_rviz_plugins::NavGridPalette.

Definition at line 91 of file basic_palettes.cpp.

std::string robot_nav_rviz_plugins::CostmapPalette::getName ( ) const
inlineoverridevirtual

Unique descriptive name for this particular palette.

Implements robot_nav_rviz_plugins::NavGridPalette.

Definition at line 89 of file basic_palettes.cpp.

bool robot_nav_rviz_plugins::CostmapPalette::hasTransparency ( ) const
inlineoverridevirtual

See if the palette has any transparent colors.

Can be overridden by implementing classes to save iterations

Reimplemented from robot_nav_rviz_plugins::NavGridPalette.

Definition at line 90 of file basic_palettes.cpp.


The documentation for this class was generated from the following file:


robot_nav_rviz_plugins
Author(s):
autogenerated on Sun Jan 10 2021 04:08:58