$search
Public Member Functions | |
def | __init__ |
def | run |
Public Attributes | |
pub | |
threadName |
Broadcasting Wiimote accelerator and gyro readings as Joy(stick) messages to Topic joy
Definition at line 305 of file wiimote_node.py.
def wiimote_node::JoySender::__init__ | ( | self, | ||
wiiMote, | ||||
freq = 100 | ||||
) |
Initializes the Wiimote 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.
Reimplemented from wiimote_node::WiimoteDataSender.
Definition at line 309 of file wiimote_node.py.
def wiimote_node::JoySender::run | ( | self | ) |
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 323 of file wiimote_node.py.
Definition at line 321 of file wiimote_node.py.
Definition at line 330 of file wiimote_node.py.