Public Member Functions | Public Attributes | List of all members
wiimote_node.ClasSender Class Reference
Inheritance diagram for wiimote_node.ClasSender:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, wiiMote, freq=100)
 
def run (self)
 
- Public Member Functions inherited from wiimote_node.WiimoteDataSender
def __init__ (self, wiiMote, freq=100)
 
def canonicalizeWiistate (self)
 
def obtainWiimoteData (self)
 

Public Attributes

 pub
 
 threadName
 
- Public Attributes inherited from wiimote_node.WiimoteDataSender
 angular_velocity_covariance
 
 freq
 
 gyroAbsence_covariance
 
 linear_acceleration_covariance
 
 sleepDuration
 
 wiiMote
 
 wiistate
 

Detailed Description

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

Definition at line 445 of file wiimote_node.py.

Constructor & Destructor Documentation

def wiimote_node.ClasSender.__init__ (   self,
  wiiMote,
  freq = 100 
)
Initializes the Classic Controller Joy(stick) publisher.
    
Parameters:
    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.

Definition at line 449 of file wiimote_node.py.

Member Function Documentation

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 464 of file wiimote_node.py.

Member Data Documentation

wiimote_node.ClasSender.pub

Definition at line 462 of file wiimote_node.py.

wiimote_node.ClasSender.threadName

Definition at line 470 of file wiimote_node.py.


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


wiimote
Author(s): Andreas Paepcke, Melonee Wise, Mark Horn
autogenerated on Fri Jun 7 2019 22:01:33