Public Member Functions | Public Attributes
wiimote_node.JoySender Class Reference
Inheritance diagram for wiimote_node.JoySender:
Inheritance graph

List of all members.

Public Member Functions

def __init__
def run

Public Attributes


Detailed Description

Broadcasting Wiimote accelerator and gyro readings as Joy(stick) messages to Topic joy

Definition at line 298 of file

Constructor & Destructor Documentation

def wiimote_node.JoySender.__init__ (   self,
  freq = 100 
Initializes the Wiimote Joy(stick) publisher.
    wiiMote: a bluetooth-connected, calibrated WIIMote instance
    freq:    the message sending frequency in messages/sec. Max is 100, because
     the Wiimote only samples the sensors at 100Hz.

Reimplemented from wiimote_node.WiimoteDataSender.

Definition at line 302 of file

Member Function Documentation

Loop that obtains the latest wiimote state, publishes the joystick data, and sleeps.

The Joy.msg message types calls for just two fields: float32[] axes, and int32[] buttons.

Definition at line 316 of file

Member Data Documentation

Definition at line 308 of file

Definition at line 319 of file

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

Author(s): Andreas Paepcke and Melonee Wise
autogenerated on Sat Dec 28 2013 17:06:51