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

Revision history [back]

click to hide/show revision 1
initial version

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.