Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
astra_ros::Rgb Class Reference

#include <color.hpp>

Public Member Functions

 operator Rgba () const noexcept
 
 operator std_msgs::ColorRGBA () const noexcept
 
 Rgb ()
 
 Rgb (const float r, const float g, const float b)
 
Hsv toHsv () const
 
Rgba toRgba () const
 
Rgba toRgba (const float a) const
 

Static Public Member Functions

static Rgb fromHsv (const Hsv &hsv)
 

Public Attributes

float b
 
float g
 
float r
 

Static Public Attributes

static const Rgb BLACK
 
static const Rgb BLUE
 
static const Rgb GREEN
 
static const Rgb RED
 
static const Rgb WHITE
 

Detailed Description

Definition at line 60 of file color.hpp.

Constructor & Destructor Documentation

◆ Rgb() [1/2]

Rgb::Rgb ( )

Definition at line 202 of file color.cpp.

◆ Rgb() [2/2]

Rgb::Rgb ( const float  r,
const float  g,
const float  b 
)

Definition at line 209 of file color.cpp.

Member Function Documentation

◆ fromHsv()

Rgb Rgb::fromHsv ( const Hsv hsv)
static

Definition at line 252 of file color.cpp.

◆ operator Rgba()

Rgb::operator Rgba ( ) const
noexcept

Definition at line 226 of file color.cpp.

◆ operator std_msgs::ColorRGBA()

Rgb::operator std_msgs::ColorRGBA ( ) const
noexcept

Definition at line 216 of file color.cpp.

◆ toHsv()

Hsv Rgb::toHsv ( ) const

Definition at line 237 of file color.cpp.

◆ toRgba() [1/2]

Rgba Rgb::toRgba ( ) const

Definition at line 242 of file color.cpp.

◆ toRgba() [2/2]

Rgba Rgb::toRgba ( const float  a) const

Definition at line 247 of file color.cpp.

Member Data Documentation

◆ b

float astra_ros::Rgb::b

Definition at line 73 of file color.hpp.

◆ BLACK

const Rgb Rgb::BLACK
static

Definition at line 79 of file color.hpp.

◆ BLUE

const Rgb Rgb::BLUE
static

Definition at line 77 of file color.hpp.

◆ g

float astra_ros::Rgb::g

Definition at line 71 of file color.hpp.

◆ GREEN

const Rgb Rgb::GREEN
static

Definition at line 76 of file color.hpp.

◆ r

float astra_ros::Rgb::r

Definition at line 69 of file color.hpp.

◆ RED

const Rgb Rgb::RED
static

Definition at line 75 of file color.hpp.

◆ WHITE

const Rgb Rgb::WHITE
static

Definition at line 78 of file color.hpp.


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


astra_ros
Author(s): Braden McDorman
autogenerated on Wed Mar 2 2022 00:53:06