Package Summary

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

Repository Summary

Checkout URI https://github.com/ros2/joystick_drivers.git
VCS Type git
VCS Version indigo-devel
Last Updated 2017-07-03
Dev Status DEVELOPED
Released UNRELEASED

Package Description

Playstation 3 SIXAXIS or DUAL SHOCK 3 joystick driver. Driver for the Sony PlayStation 3 SIXAXIS or DUAL SHOCK 3 joysticks. In its current state, this driver is not compatible with the use of other Bluetooth HID devices. The driver listens for a connection on the HID ports, starts the joystick streaming data, and passes the data to the Linux uinput device so that it shows up as a normal joystick.

Additional Links

Maintainers

  • Jonathan Bohren

Authors

  • Blaise Gassend
  • pascal pabr.org
  • Melonee Wise

PlayStation 3 Joystick Driver for ROS

This package provides a driver for the PS3 (SIXAXIS or DUALSHOCK3) bluetooth joystick.

This driver provides a more reliable connection, and provides access to the joystick's accelerometers and gyroscope. Linux's native support for the PS3 joystick does lacks this functionality.

Additional documentation:

Dependencies

  • joystick
  • libusb-dev
  • bluez-5.37

Pairing instructions

  1. If you can connect the joystick and the bluetooth dongle into the same computer connect the joystick to the computer using a USB cable.

  2. Load the bluetooth dongle's MAC address into the ps3 joystick using:

sudo bash
rosrun ps3joy sixpair

If you cannot connect the joystick to the same computer as the dongle, find out the bluetooth dongle's MAC address by running (on the computer that has the bluetooth dongle):

hciconfig

If this does not work, you may need to do

sudo hciconfig hci0 up

and retry

hciconfig

  1. Plug the PS3 joystick into some other computer using a USB cable.

  2. Replace the joystick's mac address in the following command:

sudo rosrun ps3joy sixpair 01:23:45:67:89:ab

Starting the PS3 joystick

  1. Run the following command
rosrun ps3joy ps3joy.py

  1. Open a new terminal and reboot bluez and run joy with:
sudo systemctl restart bluetooth 
rosrun joy joy_node  

  1. Open a new terminal and echo the joy topic
rostopic echo joy

  1. This should make a joystick appear at /dev/input/js?

  2. You can check that it is working with jstest /dev/input/js? (replace ? with the name of your joystick)

Limitations

This driver will not coexist with any other bluetooth device. In future releases, we plan to allow first non-HID and later any bluetooth device to coexist with this driver. The following devices do coexist:

  • Non-HID devices using a userland driver, such as one written using pybluez.
  • Keyboards or mice running in HID proxy mode, which appear to the kernel as USB devices.
CHANGELOG

Changelog for package ps3joy

1.11.0 (2017-02-10)

  • Update dependencies to remove warnings
  • Contributors: Mark D Horn

1.10.1 (2015-05-24)

  • Remove stray architechture_independent flags
  • Contributors: Jonathan Bohren, Scott K Logan

1.10.0 (2014-06-26)

  • First indigo reelase
  • Update ps3joy/package.xml URLs with github user ros to ros-drivers
  • Prompt for sudo password when required
  • Contributors: Felix Kolbe, Jonathan Bohren, dawonn

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ps3joy at answers.ros.org

Package Summary

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

Repository Summary

Checkout URI https://github.com/ros2/joystick_drivers.git
VCS Type git
VCS Version hydro-devel
Last Updated 2014-07-01
Dev Status DEVELOPED
Released UNRELEASED

Package Description

Playstation 3 SIXAXIS or DUAL SHOCK 3 joystick driver. Driver for the Sony PlayStation 3 SIXAXIS or DUAL SHOCK 3 joysticks. In its current state, this driver is not compatible with the use of other Bluetooth HID devices. The driver listens for a connection on the HID ports, starts the joystick streaming data, and passes the data to the Linux uinput device so that it shows up as a normal joystick.

Additional Links

Maintainers

  • Jonathan Bohren

Authors

  • Blaise Gassend
  • pascal pabr.org
  • Melonee Wise
Packages that need to be installed
----------------------------------
joystick
libusb-dev

Pairing instructions
--------------------

1) If you can connect the joystick and the bluetooth dongle into the same
computer.

Connect the joystick to the computer using a USB cable.

Load the bluetooth dongle's MAC address into the ps3 joystick using:

sudo bash
rosrun ps3joy sixpair

2) If you cannot connect the joystick to the same computer as the dongle.

Find out the bluetooth dongle's MAC address by running (on the computer
that has the bluetooth dongle):

hciconfig

If this does not work, you may need to do
sudo hciconfig hci0 up
and retry
hciconfig

Plug the PS3 joystick into some other computer using a USB cable.

Replace the joystick's mac address in the following command: 
sudo rosrun ps3joy sixpair 01:23:45:67:89:ab

Starting the PS3 joystick
-------------------------

rosrun ps3joy ps3joy.py

This should make a joystick appear at /dev/input/js?

You can check that it is working with
jstest /dev/input/js?
(replace ? with the name of your joystick)



CHANGELOG
No CHANGELOG found.

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged ps3joy at answers.ros.org