-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
33 lines (25 loc) · 1.58 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ROS driver for a generic Linux joystick.
The joy package contains joy_node, a node that interfaces a generic Linux joystick to ROS.
This node publishes a "Joy" message, which contains the current state of each one of the joystick's buttons and axes.
Supported Hardware
This node should work with any joystick that is supported by Linux.
Nodes
joy_node.py
The joy_node provides a generic Linux joystick node.
Published
joy
sensor_msgs/Joy
Outputs the joystick state.
Parameters
~dev
type = string
default = /dev/input/js0
Linux joystick device from which to read joystick events.
Axis events that are received within coalesce_interval (seconds) of each other are sent out in a single ROS message. Since the kernel sends each axis motion as a separate event, coalescing greatly reduces the rate at which messages are sent. This option can also be used to limit the rate of outgoing messages. Button events are always sent out immediately to avoid missing button presses.
Using this Package
For an example of using joy_node to control a teleoperation node with a joystick, see the tutorials.
In some cases, multiple joysticks may control a single robot. For example, a user may use the default joystick to drive a robot, but a second user may wish to use a different kind. Since the button mappings on each joystick may be different, it will be necessary to remap buttons on one joystick so they can match. See the Joystick Remapper package for details.
Application
Microsoft Xbox 360 Wireless Controller for Windows
Table of index number of /joy.buttons:
For more information visit http://wiki.ros.org/joy