Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
IMRGB Class Reference

#include <evarobot_rgb.h>

List of all members.

Public Member Functions

bool callbackSetRGB (im_msgs::SetRGB::Request &request, im_msgs::SetRGB::Response &response)
float GetFrequency () const
int GetMode () const
int GetTimesValue () const
 IMRGB (IMEIO *eio)
bool isNewRequest () const
void RunAutonomousMode ()
void RunChargedMode ()
void RunChargingMode ()
void RunErrorMode ()
void RunLowBatteryMode ()
void RunManualMode ()
void RunOpeningMode ()
void RunTeleopMode ()
void RunWanderMode ()
void TurnLedOff ()
 ~IMRGB ()

Static Public Attributes

static const int AUTONOMOUS = 2
static const int BLUE = 4
static const int CHARGED = 7
static const int CHARGING = 6
static const int ERROR = 8
static const int GREEN = 2
static const int LEDOFF = 0
static const int LOW_BATTERY = 5
static const int MANUAL = 0
static const int ON = 1
static const int PINK = 5
static const int RED = 1
static const int TELEOP = 3
static const int TURQUOISE = 6
static const int WANDER = 4
static const int WHITE = 7
static const int YELLOW = 3

Private Member Functions

bool DecreaseTimesValue ()
void Flash (int i_color, float f_frequency)
void FlipFlip (int i_color)
void TurnLedOn (int i_color)

Private Attributes

bool b_new_data
IMEIO * eio
float f_frequency
int i_color
int i_mode
int i_times

Detailed Description

Definition at line 25 of file evarobot_rgb.h.


Constructor & Destructor Documentation

IMRGB::IMRGB ( IMEIO *  eio)

Definition at line 24 of file evarobot_rgb.cpp.

Definition at line 44 of file evarobot_rgb.cpp.


Member Function Documentation

bool IMRGB::callbackSetRGB ( im_msgs::SetRGB::Request &  request,
im_msgs::SetRGB::Response &  response 
)

Definition at line 254 of file evarobot_rgb.cpp.

bool IMRGB::DecreaseTimesValue ( ) [private]

Definition at line 220 of file evarobot_rgb.cpp.

void IMRGB::Flash ( int  i_color,
float  f_frequency 
) [private]

Definition at line 148 of file evarobot_rgb.cpp.

void IMRGB::FlipFlip ( int  i_color) [private]

Definition at line 110 of file evarobot_rgb.cpp.

float IMRGB::GetFrequency ( ) const

Definition at line 244 of file evarobot_rgb.cpp.

int IMRGB::GetMode ( ) const

Definition at line 239 of file evarobot_rgb.cpp.

int IMRGB::GetTimesValue ( ) const

Definition at line 249 of file evarobot_rgb.cpp.

bool IMRGB::isNewRequest ( ) const

Definition at line 234 of file evarobot_rgb.cpp.

Definition at line 80 of file evarobot_rgb.cpp.

Definition at line 187 of file evarobot_rgb.cpp.

Definition at line 181 of file evarobot_rgb.cpp.

Definition at line 193 of file evarobot_rgb.cpp.

Definition at line 199 of file evarobot_rgb.cpp.

Definition at line 175 of file evarobot_rgb.cpp.

Definition at line 204 of file evarobot_rgb.cpp.

Definition at line 136 of file evarobot_rgb.cpp.

Definition at line 142 of file evarobot_rgb.cpp.

Definition at line 49 of file evarobot_rgb.cpp.

void IMRGB::TurnLedOn ( int  i_color) [private]

Definition at line 55 of file evarobot_rgb.cpp.


Member Data Documentation

const int IMRGB::AUTONOMOUS = 2 [static]

Definition at line 62 of file evarobot_rgb.h.

bool IMRGB::b_new_data [private]

Definition at line 73 of file evarobot_rgb.h.

const int IMRGB::BLUE = 4 [static]

Definition at line 54 of file evarobot_rgb.h.

const int IMRGB::CHARGED = 7 [static]

Definition at line 67 of file evarobot_rgb.h.

const int IMRGB::CHARGING = 6 [static]

Definition at line 66 of file evarobot_rgb.h.

IMEIO* IMRGB::eio [private]

Definition at line 71 of file evarobot_rgb.h.

const int IMRGB::ERROR = 8 [static]

Definition at line 68 of file evarobot_rgb.h.

float IMRGB::f_frequency [private]

Definition at line 75 of file evarobot_rgb.h.

const int IMRGB::GREEN = 2 [static]

Definition at line 52 of file evarobot_rgb.h.

int IMRGB::i_color [private]

Definition at line 77 of file evarobot_rgb.h.

int IMRGB::i_mode [private]

Definition at line 74 of file evarobot_rgb.h.

int IMRGB::i_times [private]

Definition at line 76 of file evarobot_rgb.h.

const int IMRGB::LEDOFF = 0 [static]

Definition at line 50 of file evarobot_rgb.h.

const int IMRGB::LOW_BATTERY = 5 [static]

Definition at line 65 of file evarobot_rgb.h.

const int IMRGB::MANUAL = 0 [static]

Definition at line 60 of file evarobot_rgb.h.

const int IMRGB::ON = 1 [static]

Definition at line 61 of file evarobot_rgb.h.

const int IMRGB::PINK = 5 [static]

Definition at line 55 of file evarobot_rgb.h.

const int IMRGB::RED = 1 [static]

Definition at line 51 of file evarobot_rgb.h.

const int IMRGB::TELEOP = 3 [static]

Definition at line 63 of file evarobot_rgb.h.

const int IMRGB::TURQUOISE = 6 [static]

Definition at line 56 of file evarobot_rgb.h.

const int IMRGB::WANDER = 4 [static]

Definition at line 64 of file evarobot_rgb.h.

const int IMRGB::WHITE = 7 [static]

Definition at line 57 of file evarobot_rgb.h.

const int IMRGB::YELLOW = 3 [static]

Definition at line 53 of file evarobot_rgb.h.


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


evarobot_eio
Author(s): Mehmet Akcakoca
autogenerated on Fri Feb 12 2016 01:15:21