h4r_x52_joyext
LED and MFD Control for Saitek X52 Pro
 All Classes Files Functions Variables Enumerator Macros Pages
PublishLED< T > Class Template Reference
Collaboration diagram for PublishLED< T >:
Collaboration graph

Classes

class  PairSortMod
 

Public Member Functions

 PublishLED (ros::NodeHandle *n, std::string setup, int led, int axis, bool axis_or_button)
 
 ~PublishLED ()
 
void progressValue (T value)
 
void JoyCallback (const sensor_msgs::JoyConstPtr &msg)
 
template<class MSGPTR >
void Callback (const MSGPTR &msg)
 
template<class MSG , class MSGPTR >
void start ()
 
void startJoy ()
 

Private Types

enum  { OFF ='O', GREEN ='G', YELLOW ='Y', RED ='R' }
 

Private Attributes

std::set< PairSortModranges
 
ros::NodeHandle * n
 
ros::Publisher pub
 
int led
 
bool axis_or_button
 
int axis_button
 
ros::Subscriber sub
 

Detailed Description

template<typename T>
class PublishLED< T >

Definition at line 155 of file value2buttonColor.cpp.

Member Enumeration Documentation

template<typename T>
anonymous enum
private
Enumerator
OFF 
GREEN 
YELLOW 
RED 

Definition at line 157 of file value2buttonColor.cpp.

Constructor & Destructor Documentation

template<typename T>
PublishLED< T >::PublishLED ( ros::NodeHandle *  n,
std::string  setup,
int  led,
int  axis,
bool  axis_or_button 
)
inline
template<typename T>
PublishLED< T >::~PublishLED ( )
inline

Definition at line 263 of file value2buttonColor.cpp.

Member Function Documentation

template<typename T>
template<class MSGPTR >
void PublishLED< T >::Callback ( const MSGPTR &  msg)
inline

Definition at line 307 of file value2buttonColor.cpp.

References PublishLED< T >::progressValue().

Here is the call graph for this function:

template<typename T>
void PublishLED< T >::JoyCallback ( const sensor_msgs::JoyConstPtr &  msg)
inline

Definition at line 280 of file value2buttonColor.cpp.

References PublishLED< T >::axis_button, PublishLED< T >::axis_or_button, and PublishLED< T >::progressValue().

Here is the call graph for this function:

template<typename T>
void PublishLED< T >::progressValue ( value)
inline

Definition at line 266 of file value2buttonColor.cpp.

References PublishLED< T >::led, PublishLED< T >::pub, and PublishLED< T >::ranges.

Referenced by PublishLED< T >::Callback(), and PublishLED< T >::JoyCallback().

Here is the caller graph for this function:

template<typename T>
template<class MSG , class MSGPTR >
void PublishLED< T >::start ( )
inline

Definition at line 315 of file value2buttonColor.cpp.

References PublishLED< T >::n, and PublishLED< T >::sub.

template<typename T>
void PublishLED< T >::startJoy ( )
inline

Definition at line 321 of file value2buttonColor.cpp.

References PublishLED< T >::n, and PublishLED< T >::sub.

Referenced by main().

Here is the caller graph for this function:

Member Data Documentation

template<typename T>
int PublishLED< T >::axis_button
private

Definition at line 180 of file value2buttonColor.cpp.

Referenced by PublishLED< T >::JoyCallback().

template<typename T>
bool PublishLED< T >::axis_or_button
private

Definition at line 179 of file value2buttonColor.cpp.

Referenced by PublishLED< T >::JoyCallback().

template<typename T>
int PublishLED< T >::led
private
template<typename T>
ros::NodeHandle* PublishLED< T >::n
private

Definition at line 176 of file value2buttonColor.cpp.

Referenced by PublishLED< T >::start(), and PublishLED< T >::startJoy().

template<typename T>
ros::Publisher PublishLED< T >::pub
private
template<typename T>
std::set< PairSortMod > PublishLED< T >::ranges
private
template<typename T>
ros::Subscriber PublishLED< T >::sub
private

Definition at line 181 of file value2buttonColor.cpp.

Referenced by PublishLED< T >::start(), and PublishLED< T >::startJoy().


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