Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dualshock 4 support #84

Closed
ibaranov-cp opened this issue Jan 14, 2016 · 5 comments
Closed

Dualshock 4 support #84

ibaranov-cp opened this issue Jan 14, 2016 · 5 comments

Comments

@ibaranov-cp
Copy link

Hello all,

Does this package support, or plan to support soon, the Dualshock 4?

Dualshock 3 is EOL.

@tonybaltovski
Copy link
Member

I just wanted to follow up with this. I have confirmed that the ds4drv works with the PS4 controller when in hidraw mode as a regular input. I spun up a VM and using Atheros AR3011 USB adaptor. It can be installed via pip using sudo pip install ds4drv. Pairing can be done by enabling pairing on controller by holding Share + the PS button until the LED starts blinking rapidly. Scan for a controller using hcitool scan and a "Wireless controller xx.xx.xx.xx" should be listed. Pair with sudo bluez-simple-agent hci0 xx.xx.xx.xx and trust the device with sudo bluez-test-device trusted xx.xx.xx.xx yes or use a (pairing script). A daemon service can be added using this with this config.

Any thoughts on going forward deploying the PS4 controller into the ROS ecosystem? Other bluetooth controllers suggestions welcomed.

@rbbg
Copy link

rbbg commented Feb 24, 2017

I also wanted to use the DS4 with ROS and found it surprisingly easy. After installing ds4drv and pairing the controller, I ran ds4drv --hidraw, which mounted the controller onto /dev/input/js1 (in my case). Then, running a roscore and rosparam set joy_node/dev "/dev/input/js1" + rosrun joy joy_node spun up a functional node publishing all the axes and button states.

The mapping of the buttons/axes was a bit strange, but it's definitely usable.

@davefeilseifer
Copy link

added files for ps4 controller mappings when using ds4drv to pr2_teleop (PR2/pr2_apps#37)

@JWhitleyWork
Copy link

Closing issue thanks to resolution by @rbbg.

@naoki-mizuno
Copy link
Contributor

naoki-mizuno commented Sep 1, 2019

I want to add that I wrote ds4_driver, a ROS driver for DualShock 4 that allows you to access IMU and touchpad info and also send feedback to the device.

Repository: https://github.com/naoki-mizuno/ds4_driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants