Public Types | |
enum | LedMode { STATIC = 0, BREATH = 1, BREATH_COLOR = 2, FLASH = 3, SOUND = 4 } |
Public Member Functions | |
void | beatDrumCallback () |
void | beatProcessDoneCallback () |
void | beatSnareCallback () |
mybeat::BeatController * | getBeatController () |
LightMode () | |
~LightMode () | |
Private Member Functions | |
void | breathCallback (const ros::TimerEvent &event) |
void | flashCallback (const ros::TimerEvent &event) |
bool | modeCallback (cob_lightmode::LightMode::Request &req, cob_lightmode::LightMode::Response &res) |
void | soundCallback (const ros::TimerEvent &event) |
Private Attributes | |
mybeat::BeatController * | _beatController |
std_msgs::ColorRGBA | _color |
ros::NodeHandle | _nh |
ros::Publisher | _pub |
float | _sound_magnitude |
ros::ServiceServer | _srvServer |
float | _timer_inc |
ros::Timer | _timerMode |
Definition at line 79 of file lightmode.cpp.
enum LightMode::LedMode |
Definition at line 106 of file lightmode.cpp.
LightMode::LightMode | ( | ) | [inline] |
Definition at line 82 of file lightmode.cpp.
LightMode::~LightMode | ( | ) | [inline] |
Definition at line 98 of file lightmode.cpp.
void LightMode::beatDrumCallback | ( | ) | [inline] |
Definition at line 119 of file lightmode.cpp.
void LightMode::beatProcessDoneCallback | ( | ) | [inline] |
Definition at line 108 of file lightmode.cpp.
void LightMode::beatSnareCallback | ( | ) | [inline] |
Definition at line 114 of file lightmode.cpp.
void LightMode::breathCallback | ( | const ros::TimerEvent & | event | ) | [inline, private] |
Definition at line 196 of file lightmode.cpp.
void LightMode::flashCallback | ( | const ros::TimerEvent & | event | ) | [inline, private] |
Definition at line 214 of file lightmode.cpp.
mybeat::BeatController* LightMode::getBeatController | ( | ) | [inline] |
Definition at line 104 of file lightmode.cpp.
bool LightMode::modeCallback | ( | cob_lightmode::LightMode::Request & | req, |
cob_lightmode::LightMode::Response & | res | ||
) | [inline, private] |
Definition at line 138 of file lightmode.cpp.
void LightMode::soundCallback | ( | const ros::TimerEvent & | event | ) | [inline, private] |
Definition at line 219 of file lightmode.cpp.
mybeat::BeatController* LightMode::_beatController [private] |
Definition at line 134 of file lightmode.cpp.
std_msgs::ColorRGBA LightMode::_color [private] |
Definition at line 132 of file lightmode.cpp.
ros::NodeHandle LightMode::_nh [private] |
Definition at line 125 of file lightmode.cpp.
ros::Publisher LightMode::_pub [private] |
Definition at line 127 of file lightmode.cpp.
float LightMode::_sound_magnitude [private] |
Definition at line 135 of file lightmode.cpp.
ros::ServiceServer LightMode::_srvServer [private] |
Definition at line 126 of file lightmode.cpp.
float LightMode::_timer_inc [private] |
Definition at line 130 of file lightmode.cpp.
ros::Timer LightMode::_timerMode [private] |
Definition at line 129 of file lightmode.cpp.