ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I figured out what the problem was.
When the bluetooth dongle and ps3 controller are paired, they are automatically set to /dev/input/js0 by default.
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
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.