Public Member Functions | Protected Attributes
JoyStick Class Reference

#include <JoyStick.h>

Inheritance diagram for JoyStick:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool get (void)
 JoyStick (int i=GLFW_JOYSTICK_1)
virtual void publishMessage (void)
virtual void setUpPublisher (void)
void spin (float hz)

Protected Attributes

float a [32]
unsigned char b [32]
int joy_num
ros::Publisher joy_pub
int num_axes
int num_buttons
ros::Publisher twist_pub

Detailed Description

JoyStick uses GLFW library to read any joystick connected to the system. The joysticks are numbered from GLFW_JOYSTICK_1 (or 0) to GLFW_JOYSTICK_LAST (or 16). The class defaults to the first one (0).

Definition at line 69 of file JoyStick.h.


Constructor & Destructor Documentation

JoyStick::JoyStick ( int  i = GLFW_JOYSTICK_1) [inline]

Definition at line 71 of file JoyStick.h.


Member Function Documentation

bool JoyStick::get ( void  ) [inline]

Definition at line 107 of file JoyStick.h.

virtual void JoyStick::publishMessage ( void  ) [inline, virtual]

Reimplemented in TwistJoyStick.

Definition at line 151 of file JoyStick.h.

virtual void JoyStick::setUpPublisher ( void  ) [inline, virtual]

Reimplemented in TwistJoyStick.

Definition at line 95 of file JoyStick.h.

void JoyStick::spin ( float  hz) [inline]

Definition at line 127 of file JoyStick.h.


Member Data Documentation

float JoyStick::a[32] [protected]

Definition at line 172 of file JoyStick.h.

unsigned char JoyStick::b[32] [protected]

Definition at line 173 of file JoyStick.h.

int JoyStick::joy_num [protected]

Definition at line 169 of file JoyStick.h.

ros::Publisher JoyStick::joy_pub [protected]

Definition at line 176 of file JoyStick.h.

int JoyStick::num_axes [protected]

Definition at line 170 of file JoyStick.h.

int JoyStick::num_buttons [protected]

Definition at line 171 of file JoyStick.h.

ros::Publisher JoyStick::twist_pub [protected]

Definition at line 177 of file JoyStick.h.


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


osx_joystick
Author(s): Kevin Walchko
autogenerated on Tue Jan 7 2014 11:27:05