ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Accepting inputs from a Playstation 3 Controller via USB

asked 2013-11-11 11:21:40 -0500

Hey everyone! I'm new to ROS and I've been working on a project at university with underwater robotics. I want to implement controlling the robot remotely via a Playstation controller connected to my computer via USB. I'm completely new so I don't know how to get started. Does anyone have any tips on what I should look into?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2013-11-11 19:26:21 -0500

fergs gravatar image

A new option would be to get a PS4 controller. Currently, these won't work over Bluetooth, but from our testing they are immediately recognized as a joystick by Ubuntu Linux 12.04 when connected over USB. You could then use the standard joy_node (http://wiki.ros.org/joy).

Note that the button mappings appear to be entirely different from the popular PS3 controller.

edit flag offensive delete link more

Comments

Hi fergs, I took a look at this package and I managed to get the input data from the controller as a joystick (which is really all I need), but for some reason I wasn't able to get the tutorials working. What is the best way to translate that information into something I can use to direct the robot?

jakemorris gravatar image jakemorris  ( 2013-11-11 19:29:13 -0500 )edit
3

answered 2013-11-11 12:29:53 -0500

Chad Rockey gravatar image

I don't believe there is an official wired PS3 controller, see the complaints here: http://community.us.playstation.com/t5/PlayStation-3/I-am-extremely-angry-at-Sony-no-wired-controllers/td-p/30842367

ROS does support PS3 controllers over bluetooth: http://wiki.ros.org/ps3joy/Tutorials/PairingJoystickAndBluetoothDongle

See here for turtlebot's example launch file: https://github.com/turtlebot/turtlebot_apps/blob/hydro-devel/turtlebot_teleop/launch/ps3_teleop.launch

If you need a wired controller, I would look at something that support's Linux's joystick API: http://wiki.ros.org/joy

edit flag offensive delete link more

Comments

Thanks, I was looking for solutions online but I only got the Bluetooth enabled answers. I thought there could be some way to interface it since the controller has a USB port on the back. It looks like Bluetooth is my best option.

jakemorris gravatar image jakemorris  ( 2013-11-11 12:36:41 -0500 )edit
1

answered 2013-11-11 20:55:53 -0500

updated 2013-11-11 20:56:31 -0500

I am not 100% sure (and I have no time to test), but I think I have used the PS3 controller by connecting it using USB and then just using the regular joystick driver.

/edit: People at this Q/A seem to agree.

edit flag offensive delete link more

Comments

Hi! Sorry if I ask a bunch of questions, because I'm still a newb at this stuff. So I'm trying to do the tutorials using Hydro, so some I'm not sure if some parts of the tutorials are working... For some reason, there is no executable for joy_node when I try to run it. Do you have any insight?

jakemorris gravatar image jakemorris  ( 2013-11-15 13:02:31 -0500 )edit

Question Tools

Stats

Asked: 2013-11-11 11:21:40 -0500

Seen: 2,835 times

Last updated: Nov 11 '13