From 4a0353985b5e1f86fe1344536e4ba0ea6d46867a Mon Sep 17 00:00:00 2001
From: fherrero <fherrero@iri.upc.edu>
Date: Tue, 18 Sep 2018 12:15:50 +0200
Subject: [PATCH] Added instructions for ps3 pad pairing

---
 launch/teleop_ps3.launch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/launch/teleop_ps3.launch b/launch/teleop_ps3.launch
index 6ba1bcf..7631b72 100644
--- a/launch/teleop_ps3.launch
+++ b/launch/teleop_ps3.launch
@@ -1,6 +1,17 @@
 <!-- -->
 <launch>
 
+  <!--
+  How to connect ps3joy to computer:
+  1. Set udev rules:
+      - Copy config/99-ps3joy.rules in /etc/udev/rules.d
+      - sudo service udev restart
+  2. Plug ps3 pad with usb cable to computer and press pairing central button (or use bluetooth)
+      - Device should appear as /dev/input/ps3joy
+  3. To fix issue where "pad is detected as a mouse":
+      - xinput disable "Sony PLAYSTATION(R)3 Controller"
+  -->
+
   <arg name="name" default="teleop_ps3"/>
   <arg name="dev"  default="/dev/input/ps3joy"/>
   <arg name="config_filepath" default="$(find iri_twist_to_manual_control)/config/ps3.yaml" />
-- 
GitLab