Setting Up joystick to control Pioneer 3-DX in ROS
From Lofaro Lab Wiki
Step 1: Connect and setup joystick in Ubuntu
Since a joystick is an HID, once connected to the computer, it should come up as a device under /dev/input . Run dmesg or lsusb to check that the device has been detected. ls /dev/input shows that a new device js0 has appeared. This can be jsX for you, where X is some number.
To test that the joystick is properly configured and working, we can use sudo jstest /dev/input/js0. This displays all the joystick and button data. Note: jstest is part of the joystick package and you may need to install joystick.
Step 2: Setup joy package in ROS and configure joy Node