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

ps3joy on OSX

asked 2012-01-29 05:12:20 -0500

Kevin gravatar image

updated 2012-09-09 15:34:19 -0500

I see the package for Linux to use a PS3 Dual Shock joystick, but is there a similar package for OSX? Thanks.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2012-09-09 15:31:49 -0500

Kevin gravatar image

I have finally found a way to use my PS3 controller with ROS that doesn't involve my having to learn Python. I wrote a simple package call osx_joystick that will publish either sensor_msgs::Joy or geometry_msgs::Twist based on the analog sticks or button values.

edit flag offensive delete link more
2

answered 2012-02-28 16:29:25 -0500

William gravatar image

updated 2012-02-28 16:30:03 -0500

There does not seem to be an option for that on Mac just yet.

I use rososc and my iPhone for driving stuff or simulations with my mac.

http://www.ros.org/wiki/rososc

http://www.ros.org/wiki/teleop_handler

edit flag offensive delete link more

Comments

1

Yes, I have played with that on my iPad. It was cool, but I still think the joystick is better. Since I have 4 of the ps3 joysticks, I would love to get one of them working.

Kevin gravatar image Kevin  ( 2012-02-29 13:20:20 -0500 )edit
1

Strange ... I just went to ros.org and tried to search for the rososc code and it said: Didn't find anything relating to 'rososc'. Going straight to your link above works fine.

Kevin gravatar image Kevin  ( 2012-03-04 07:42:23 -0500 )edit
0

answered 2012-02-28 18:27:40 -0500

ahendrix gravatar image

Apparently Apple includes a generic joystick driver for the PS3 controller, see the fifth post here: http://www.neoseeker.com/forums/30444/t1330489-ps3-controller-as-mac-joystick/ . This solves the hard problem of how to pair the PS3 controller and turn it into a joystick.

Unfortunately, there isn't a general ROS joystick driver for OS X yet, but it shouldn't be too hard to use the joystick input from pygame to write one.

edit flag offensive delete link more

Comments

1

Yes, I have done it before using Processing and the proControl library on 10.6 ... however I can't pair 10.7 and my ps3 controller anymore. It keeps asking for a pass phrase now ... Apple seems to have made improvements to Bluetooth!

Kevin gravatar image Kevin  ( 2012-02-29 13:17:48 -0500 )edit

Question Tools

Stats

Asked: 2012-01-29 05:12:20 -0500

Seen: 1,309 times

Last updated: Sep 09 '12