Sixaxis Publisher Documentation

class sixaxis_publisher.SixaxisPublisher[source]

Sixaxis Publisher is a ROS joystick driver for PS3 controllers

This module looks for connected PlayStation 3 controllers and registers a callback to translate joystick inputs to velocity commands.

callback(msg)[source]
connect_joystick()[source]
handle_close()[source]
handle_expt()[source]
handle_read()[source]
process_event(event)[source]
scale_stick(value)[source]

Normalizes a joystick output byte (0-255) to the range -1 to 1

Parameters:value (float or int) – the value to scale from (0,255) to (-1,1)
Returns:the normalized value
Return type:float
send_cmd()[source]
writable()[source]