PR2 / pr2_apps

15 stars 24 forks source link

added config files for ps4 dualshock controller (using ds4drv) #37

Closed davefeilseifer closed 3 years ago

davefeilseifer commented 5 years ago

ps3 dualshock controller does not work with kernel versions 4.4 and later, added config files that works with the ps4 dualshock controller that is supported in 16.04 and later (using the ds4drv python package: pip install ds4drv)

for now, added separate launch file teleop_ps4_joystick.launch which draws from different config file which has mappings for ps4 dualshock controller. Remaps left hand open/close to joystick buttons instead of left/right arrows which don't show up as buttons on the ps4 controller

v4hn commented 5 years ago

Interesting.

Which ROS package do you use with ds4drv to populate the /joy topic?

davefeilseifer commented 5 years ago

Just the regular joy_node from the joy package. The ds4drv sets up the controller as /dev/input/jsX, the joy_node just takes it from there.

v4hn commented 5 years ago

Ah, right. Sounds good, although I don't have the resources to test your config at the moment. Thanks!

davefeilseifer commented 3 years ago

I've reviewed this on my pr2 at UNR. Any change this can be merged?

v4hn commented 3 years ago

Wow, this patch got lost! It just adds a configuration and it works for you, so I will just merge it. Sorry for not doing it already back then, but I was hoping to find the time to test on our PR2 before merging.

davefeilseifer commented 3 years ago

Wow, this patch got lost! It just adds a configuration and it works for you, so I will just merge it. Sorry for not doing it already back then, but I was hoping to find the time to test on our PR2 before merging.

thanks! no worries on the delay, I just thought that since ps3 joysticks are not supported well anymore, a ps4 option would be better