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

ps3joy controller bluetooth unpairing

asked 2012-11-29 04:28:02 -0500

mte2010 gravatar image

updated 2014-01-28 17:14:26 -0500

ngrennan gravatar image

I have a ps3 controller which I was using to drive my robot.

The controller was connected to my pc via usb.

I ran through the ROS tutorial titled 'How to Pair the PS3 Joystick with a Bluetooth Dongle.'

And paired the controller to a bluetooth dongle I had. Everything worked well. Except, I found that sometimes I lost connectivity to the controller and my robot would go nuts when this happened.

I want to go back to the original configuration of having the controller connected to the pc via usb but I don't know how, can I get some help please?

Thanks.

edit retag flag offensive close merge delete

Comments

1

This doesn't help with the question, but with the problem: Your robot MUST have timeouts for receiving motion commands and stop if there aren't any. Going nuts on connection loss in not a good behaviour.

dornhege gravatar image dornhege  ( 2012-11-29 04:47:06 -0500 )edit

I dont exactly get your problem. Is your controller automatically pairing with your bluetooth donge and you want that to stop? Or cant the controller be used over normal usb anymore because of the pairing?

Ben_S gravatar image Ben_S  ( 2012-11-29 09:13:49 -0500 )edit

the problem is; i paired them using the ros tutorial. I don't want to use the bluetooth dongle anymore, i tried unpairing them by following the same tutorial. Except, the controller cannot be used over the usb line anymore. Is there a way i can check which usb input the controller is set at?

mte2010 gravatar image mte2010  ( 2012-12-03 10:41:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-12-11 11:55:17 -0500

mte2010 gravatar image

I figured out what the problem was.

  1. When the bluetooth dongle and ps3 controller are paired, they are automatically set to /dev/input/js0 by default.

  2. And when I plug in the ps3 controller to the pc using a usb cable, this new instance of a joystick is now set to /dev/input/js1

  3. So, looking at the launch file created to launch our nodes, under node pkg = joy, value = /dev/input/js0. So I just set that to js1 instead, and now my code runs off whatever is identified as js1, which in this case is the ps3 controller hooked up using usb.

So, if I ever want to go back to using the bluetooth dongle, I'll just reset that /dev/input/ value to js0...

Thanks.

edit flag offensive delete link more

Comments

Removing the bluetooth-dongle wasnt an option?

Ben_S gravatar image Ben_S  ( 2012-12-12 06:59:12 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-11-29 04:28:02 -0500

Seen: 969 times

Last updated: Dec 11 '12