linuxrosdescriptorjoystick

Couldn't set gain on joystick force feedback: Bad file descriptor


I have a xbox 360 joystick.
I'm currently have trouble with connecting my joystick to PC.

I've searched the information about this.
My device is connected on /dev/input/js0

  1. I did below two tests successfully!
$ jstest /dev/input/js0
$ jstest-gtk
  1. I did also,
$ sudo chmod a+rw /dev/input/js0

Whenever I type that line

$ rosrun joy joy_node dev:=/dev/input/js0

enter image description here


Anyone has an experience solving the problem?

Thanks.


Solution

  • Stumbled upon this. Just for completion: the question seems to be answered in an issue of the corresponding ros package here.