Joystick
From wikidb
Contents
Reference
Install
This installs joystick and ros-indigo-joy.
sudo apt-get install ros-indigo-joy
Configure
Determined that the new device is js0
ls /dev/input/
Test
sudo jstest /dev/input/js0
Configure
ls -l /dev/input/js0 sudo chmod a+rw /dev/input/js0
ROS Test
In first terminal starts the joy node.
rosparam set joy_node/dev "/dev/input/js2" rosrun joy joy_node
In a second terminal displays the joystick data.
rostopic echo joy
Hardware
Example "joy" messages
Microsoft SideWinder
Sidewinder Plug & Play Game Pad part number X04-97602
header: seq: 1081 stamp: secs: 1450402525 nsecs: 456226711 frame_id: axes: [0.0, 0.0] buttons: [0, 0, 0, 0, 0, 0]
Logitech Dual Action
Dual Action G-UF13A
header: seq: 423 stamp: secs: 1450402765 nsecs: 268287549 frame_id: axes: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0] buttons: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
To Investigate
Testing
- Configure a Joystick
- jstest-gtk package