I am so stoked!
Several years ago I tried two different PS4 wireless game controllers with Carl to no avail.
Today (Friday the 13th) was different. This $16 SNES Gamepad comes pre-paired to a USB WiFi adapter
and with a simple:
sudo apt-get install joystick
I have a controller that should work with ROS teleop-twist-joystick node to drive Dave around for /scan topic bagging and future map development.
I could even walk him around the block for donkey car training (after a few years more learning…).
Setup 2.4GHz Wireless USB Gamepad
lsusb shows: Bus 001 Device 005: ID 0079:0126 DragonRise Inc. Plugged in USB WiFi Gamepad adapter sudo apt install joystick jstest --normal /dev/input/js0 Driver version is 2.1.0. Joystick (Controller) has 6 axes (X, Y, Z, Rz, Hat0X, Hat0Y) and 13 buttons (BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode). Testing ... (interrupt to exit) Axes: 0: 0 1: 0 2: 0 3: 0 4: 0 5: 0 Buttons: 0:off 1:off 2:off 3:off 4:off 5:off 6:off 7:off 8:off 9:off 10:off 11:off 12:off Pad Up: Axis 1: -32767 Pad Dn: Axis 1: 32767 Pad Left: Axis 0: -32767 Pad Right: Axis 0: 32767 Select: Button 8 Start: Button 9 X: Button 0 B: Button 2 Y: Button 3 A: Button 1 Forefinger pads: Left: Button 4 Right: Button 5 sudo jscal -q /dev/input/js0 jscal -u 6,0,1,2,5,16,17,13,304,305,306,307,308,309,310,311,312,313,314,315,316 /dev/input/js0 Charging: blinking red Fully Charged: LED off Low Battery: blinking red Battery OK: solid red Instructions say do not charge more than 2 hours Power Consumption: 12 mA at 11.13v (probably 25mA at 5v through USB)
(I have a powerful wired joystick connected to the desktop computer,
but since the the PiCamera doesn’t easily work with the 64bit Ubuntu Server OS,
this wireless-to-Dave controller will allow me to “escort” Dave around the house.)