Revision 16 as of 2009-09-25 05:44:53

Clear message

  Show EOL distros: 

joystick_drivers: cwiid | joy | ps3joy | spacenav | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: cwiid | joy | ps3joy | spacenav | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: joy | ps3joy | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: joy | ps3joy | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: joy | ps3joy | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: joy | ps3joy | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: joy | ps3joy | spacenav_node | wiimote

Package Summary

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.

joystick_drivers: joy | spacenav_node

Package Summary

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.

The joy package is the interface between ROS and Linux joysticks. Using joy_node and the Joy message, it can read from any joystick, and publish the state of buttons and axes.

Supported Hardware

This node should work with any joystick that is supported by linux.

Stability

The ROS API of this node should be considered stable.

ROS API

Nodes

  • joy_node : The linux joystick node.

Topics

  • joy (joy/Joy) - Outputs the joystick state.

Parameters

  • ~dev (string) - Linux joystick device from which to read joystick events. Default: /dev/input/js0

  • ~deadzone (double) - Amount by which the joystick has to move before it is considered to be off-center. This parameter is specified relative to an axis normalized between -1 and 1. Thus, 0.1 means that the joystick has to move 10% of the way to the edge of the joystick's range before any motion is considered. Linux does its own deadzone processing, so in many cases this value can be set to zero. Default: 0.05

  • ~autorepeat_rate (double) - Rate in Hz at which a joystick that has a non-changing state will resend the previous message it sent. Default: zero (disabled)

  • ~coalesce_interval (double) - 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 seperate event, coalescing greatly reduces the rate at which messages are sent. This option can also be used to limit the rate of outgoing messages. Buttons are always sent out immediately to avoid missing button presses. Default value: 0.001

Using joy

The joy_node can be part of the robot's launch file. If the joystick cannot be opened, the joy_node will poll the specified device port until it is found.

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.