Definition at line 17 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos.__init__ |
( |
|
self | ) |
|
def ds4_driver.controller_ros.ControllerRos._normalize_axis_ |
( |
|
val, |
|
|
|
deadzone = 0.0 |
|
) |
| |
|
staticprivate |
Convert a value of [0, 255] to [-1.0, 1.0]
:param val:
:param deadzone:
:return:
Definition at line 228 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos._report_to_status_ |
( |
|
report_msg, |
|
|
|
deadzone = 0.05 |
|
) |
| |
|
staticprivate |
def ds4_driver.controller_ros.ControllerRos._status_to_battery_ |
( |
|
status | ) |
|
|
staticprivate |
Converts a ds4_driver/Status to sensor_msgs/BatteryState
Reference: https://www.psdevwiki.com/ps4/DualShock_4#Specifications
:param status:
:type status: Status
:return:
Definition at line 282 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos._status_to_imu_ |
( |
|
status | ) |
|
|
staticprivate |
Converts a ds4_driver/Status to sensor_msgs/Imu
:param status:
:type status: Status
:return:
Definition at line 308 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos._status_to_joy_ |
( |
|
status | ) |
|
|
staticprivate |
Converts a ds4_driver/Status message to sensor_msgs/Joy
:param status:
:type status: Status
:return:
Definition at line 242 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos.cb_feedback |
( |
|
self, |
|
|
|
msg |
|
) |
| |
Callback method for ds4_driver/Feedback
:param msg:
:type msg: Feedback
:return:
Definition at line 87 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos.cb_joy_feedback |
( |
|
self, |
|
|
|
msg |
|
) |
| |
Callback method for sensor_msgs/JoyFeedbackArray
The message contains the following feedback:
LED0: red
LED1: green
LED2: blue
RUMBLE0: rumble small
RUMBLE1: rumble big
:param msg:
:type msg: JoyFeedbackArray
:return:
Definition at line 124 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos.cb_joy_pub_timer |
( |
|
self, |
|
|
|
_ |
|
) |
| |
def ds4_driver.controller_ros.ControllerRos.cb_report |
( |
|
self, |
|
|
|
report |
|
) |
| |
Callback method for ds4drv event loop
:param report:
:return:
Definition at line 44 of file controller_ros.py.
def ds4_driver.controller_ros.ControllerRos.cb_stop_rumble |
( |
|
self, |
|
|
|
event |
|
) |
| |
ds4_driver.controller_ros.ControllerRos._autorepeat_rate |
|
private |
ds4_driver.controller_ros.ControllerRos._prev_joy |
|
private |
ds4_driver.controller_ros.ControllerRos.deadzone |
ds4_driver.controller_ros.ControllerRos.frame_id |
ds4_driver.controller_ros.ControllerRos.imu_frame_id |
ds4_driver.controller_ros.ControllerRos.pub_battery |
ds4_driver.controller_ros.ControllerRos.pub_imu |
ds4_driver.controller_ros.ControllerRos.pub_joy |
ds4_driver.controller_ros.ControllerRos.pub_report |
ds4_driver.controller_ros.ControllerRos.pub_status |
ds4_driver.controller_ros.ControllerRos.sub_feedback |
ds4_driver.controller_ros.ControllerRos.use_standard_msgs |
The documentation for this class was generated from the following file: