Difference between revisions of "Setting Up joystick to control Pioneer 3-DX in ROS"
From Lofaro Lab Wiki
(Created page with "'''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 d...") |
|||
Line 1: | Line 1: | ||
'''Step 1: Connect and setup joystick in Ubuntu''' | '''Step 1: Connect and setup joystick in Ubuntu''' | ||
---- | ---- | ||
− | |||
− | |||
− | '''Step 2: | + | 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. |
+ | |||
+ | [[picture]] | ||
+ | |||
+ | 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''' |
Revision as of 13:38, 11 February 2015
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