Functions | Variables
led.cpp File Reference
#include <ros/ros.h>
#include <string>
#include <boost/algorithm/string.hpp>
#include <clover/SetLEDEffect.h>
#include <led_msgs/SetLEDs.h>
#include <led_msgs/LEDState.h>
#include <led_msgs/LEDStateArray.h>
#include <sensor_msgs/BatteryState.h>
#include <mavros_msgs/State.h>
#include <rosgraph_msgs/Log.h>
Include dependency graph for led.cpp:

Go to the source code of this file.

Functions

void callSetLeds ()
 
void fill (uint8_t r, uint8_t g, uint8_t b)
 
void handleBattery (const sensor_msgs::BatteryState &msg)
 
void handleLog (const rosgraph_msgs::Log &log)
 
void handleMavrosState (const mavros_msgs::State &msg)
 
void handleState (const led_msgs::LEDStateArray &msg)
 
int main (int argc, char **argv)
 
void notify (const std::string &event)
 
void proceed (const ros::TimerEvent &event)
 
void rainbow (uint8_t n, uint8_t &r, uint8_t &g, uint8_t &b)
 
bool setEffect (clover::SetLEDEffect::Request &req, clover::SetLEDEffect::Response &res)
 

Variables

double blink_fast_rate
 
double blink_rate
 
bool blink_state
 
int counter
 
clover::SetLEDEffect::Request current_effect
 
double fade_period
 
double flash_delay
 
int led_count
 
double low_battery_threshold
 
mavros_msgs::State mavros_state
 
double rainbow_period
 
led_msgs::SetLEDs set_leds
 
ros::ServiceClient set_leds_srv
 
led_msgs::LEDStateArray start_state
 
ros::Time start_time
 
led_msgs::LEDStateArray state
 
ros::Timer timer
 
double wipe_period
 

Function Documentation

◆ callSetLeds()

void callSetLeds ( )

Definition at line 39 of file led.cpp.

◆ fill()

void fill ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)

Definition at line 68 of file led.cpp.

◆ handleBattery()

void handleBattery ( const sensor_msgs::BatteryState &  msg)

Definition at line 281 of file led.cpp.

◆ handleLog()

void handleLog ( const rosgraph_msgs::Log &  log)

Definition at line 274 of file led.cpp.

◆ handleMavrosState()

void handleMavrosState ( const mavros_msgs::State &  msg)

Definition at line 249 of file led.cpp.

◆ handleState()

void handleState ( const led_msgs::LEDStateArray &  msg)

Definition at line 227 of file led.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 292 of file led.cpp.

◆ notify()

void notify ( const std::string &  event)

Definition at line 233 of file led.cpp.

◆ proceed()

void proceed ( const ros::TimerEvent event)

Definition at line 80 of file led.cpp.

◆ rainbow()

void rainbow ( uint8_t  n,
uint8_t &  r,
uint8_t &  g,
uint8_t &  b 
)

Definition at line 49 of file led.cpp.

◆ setEffect()

bool setEffect ( clover::SetLEDEffect::Request &  req,
clover::SetLEDEffect::Response &  res 
)

Definition at line 147 of file led.cpp.

Variable Documentation

◆ blink_fast_rate

double blink_fast_rate

Definition at line 30 of file led.cpp.

◆ blink_rate

double blink_rate

Definition at line 30 of file led.cpp.

◆ blink_state

bool blink_state

Definition at line 32 of file led.cpp.

◆ counter

int counter

Definition at line 37 of file led.cpp.

◆ current_effect

clover::SetLEDEffect::Request current_effect

Definition at line 26 of file led.cpp.

◆ fade_period

double fade_period

Definition at line 30 of file led.cpp.

◆ flash_delay

double flash_delay

Definition at line 30 of file led.cpp.

◆ led_count

int led_count

Definition at line 27 of file led.cpp.

◆ low_battery_threshold

double low_battery_threshold

Definition at line 31 of file led.cpp.

◆ mavros_state

mavros_msgs::State mavros_state

Definition at line 36 of file led.cpp.

◆ rainbow_period

double rainbow_period

Definition at line 30 of file led.cpp.

◆ set_leds

led_msgs::SetLEDs set_leds

Definition at line 33 of file led.cpp.

◆ set_leds_srv

ros::ServiceClient set_leds_srv

Definition at line 35 of file led.cpp.

◆ start_state

led_msgs::LEDStateArray start_state

Definition at line 34 of file led.cpp.

◆ start_time

ros::Time start_time

Definition at line 29 of file led.cpp.

◆ state

led_msgs::LEDStateArray state

Definition at line 34 of file led.cpp.

◆ timer

ros::Timer timer

Definition at line 28 of file led.cpp.

◆ wipe_period

double wipe_period

Definition at line 30 of file led.cpp.



clover
Author(s): Oleg Kalachev , Artem Smirnov
autogenerated on Mon Feb 28 2022 22:08:29