-

joystick_sdl package from joystick_sdl repo

joystick_sdl

Package Summary

Tags No category tags.
Version 0.0.0
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/mikepurvis/joystick_sdl.git
VCS Type git
VCS Version master
Last Updated 2016-01-25
Dev Status DEVELOPED
CI status Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A cross-platform joystick node, backed by SDL2.

Additional Links

No additional links.

Maintainers

  • Mike Purvis

Authors

  • Mike Purvis

joystick_sdl Build Status

One of the limitations of the standard ROS joy package is that it depends on the linux/joystick.h header. This sucks, especially for ROS users on Windows and OS X, who would enjoy being able to remotely teleop robots using a locally-connected game controller… without a VM.

So the idea here is to piggy-back on the cross-platform joystick support available in SDL. So far, it is tested to work with a Logitech F710 and DualShock 3 (wired) in Ubuntu Trusty 14.04 and Mac OS X 10.10.3, with the following caveats:

  • For Mac OS X, the F710 must be in DirectInput mode (“D” on the top switch).
  • Detecting disconnects on OS X works only with SDL 2.0.4 and above.
  • Analog triggers don’t work, nor does motion control or force feedback (SDL limitations). Triggers register as ordinary binary button presses.
  • No attempt is made to expose “hats” or “balls” from the SDL API.
  • Unlike joy_node, which uses IO blocking, this package polls the joystick at a fixed interval (default 25 Hz). This is a consequence of building it on a game platform, where input is typically processed at a set point in the main loop.
  • Unlike joy_node, there’s (currently) no way to differentiate multiple devices connected to the same computer.

Finally, SDL provides (via the GameController API, some ability to abstract joystick mappings so that disparate units can swap in for each other more easily (eg, every device has an “A” button, even if it’s the one with an X on it on a PlayStation pad). There’s some rough-in to support this here, but it’s unclear how desirable it really is going forward, as most robots have a standard joystick they ship with, and a button mapping to match. For now, this is unused, as it’s more valuable to have this package be a drop-in replacement for joy.

This package is under active development. Caveat emptor.

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Name
sdl2

Dependant Packages

No known dependants.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged joystick_sdl at Robotics Stack Exchange