h4r_x52_joyext
LED and MFD Control for Saitek X52 Pro
 All Classes Files Functions Variables Enumerator Macros Pages
mfd_writer.cpp File Reference
#include <ros/ros.h>
#include <string>
#include <vector>
#include <set>
#include <limits>
#include <iostream>
#include <sstream>
#include <std_msgs/Float32.h>
#include <std_msgs/Float64.h>
#include <std_msgs/Int8.h>
#include <std_msgs/Int16.h>
#include <std_msgs/Int32.h>
#include <std_msgs/Int64.h>
#include <std_msgs/UInt8.h>
#include <std_msgs/UInt16.h>
#include <std_msgs/UInt32.h>
#include <std_msgs/UInt64.h>
#include <std_msgs/Bool.h>
#include <boost/algorithm/string.hpp>
#include <sensor_msgs/Joy.h>
#include <h4r_x52_joyext/x52_mfd.h>
Include dependency graph for mfd_writer.cpp:

Go to the source code of this file.

Classes

class  PublishMFD< T >
 
class  PublishMFD< T >::PairSortMod
 

Macros

#define casem(CASE, TYPE, TYPEROS)
 

Enumerations

enum  {
  INPUT_FLOAT32 = 0, INPUT_FLOAT64, INPUT_INT8, INPUT_INT16,
  INPUT_INT32, INPUT_INT64, INPUT_UINT8, INPUT_UINT16,
  INPUT_UINT32, INPUT_UINT64, INPUT_BOOL, INPUT_JOY
}
 

Functions

int main (int argc, char **argv)
 

Macro Definition Documentation

#define casem (   CASE,
  TYPE,
  TYPEROS 
)
Value:
case CASE:\
{\
PublishMFD< TYPE > obj(&n);\
obj.start<std_msgs::TYPEROS, std_msgs:: TYPEROS## ConstPtr>();\
break;\
}\

Referenced by main().

Enumeration Type Documentation

anonymous enum
Enumerator
INPUT_FLOAT32 
INPUT_FLOAT64 
INPUT_INT8 
INPUT_INT16 
INPUT_INT32 
INPUT_INT64 
INPUT_UINT8 
INPUT_UINT16 
INPUT_UINT32 
INPUT_UINT64 
INPUT_BOOL 
INPUT_JOY 

Definition at line 168 of file mfd_writer.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

The main function

Parameters
argcSize of Arguments supplied
argvArgument list
Returns
0

< The input type

Definition at line 522 of file mfd_writer.cpp.

References casem, INPUT_BOOL, INPUT_FLOAT32, INPUT_FLOAT64, INPUT_INT16, INPUT_INT32, INPUT_INT64, INPUT_INT8, INPUT_JOY, INPUT_UINT16, INPUT_UINT32, INPUT_UINT64, INPUT_UINT8, and PublishMFD< T >::startJoy().

Here is the call graph for this function: