wiimote_node::ClasSender Class Reference

Inheritance diagram for wiimote_node::ClasSender:
Inheritance graph

List of all members.

Public Member Functions

def __init__
def run

Public Attributes


Detailed Description

Broadcasting Classic Controller joystick readings as Joy(stick) messages to Topic joy

Definition at line 453 of file wiimote_node.py.

Member Function Documentation

def wiimote_node::ClasSender::__init__ (   self,
  freq = 100 
Initializes the Classic Controller 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 457 of file wiimote_node.py.

def wiimote_node::ClasSender::run (   self  ) 
Loop that obtains the latest classic controller 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 472 of file wiimote_node.py.

Member Data Documentation

Definition at line 470 of file wiimote_node.py.

Definition at line 478 of file wiimote_node.py.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator

Author(s): Andreas Paepcke
autogenerated on Fri Jan 11 09:15:27 2013