Ask Your Question

Did anyone use xbox wireless controller for navigation?

asked 2017-03-30 11:57:31 -0500

Rezwan gravatar image

Following the tutorial here

rostest@rostest-desktop:~/catkin_ws$ rosparam set joy_node/dev "/dev/input/js0"
rostest@rostest-desktop:~/catkin_ws$ rosrun joy joy_node
[ INFO] [1490892165.561084240]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.

rostest@rostest-desktop:~/catkin_ws$ rostopic echo joy

showing nothing..

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-30 13:42:43 -0500

ahendrix gravatar image

I've seen some joysticks that only send updates when you move the controls, so you may want to try pushing buttons or moving the joystick.

You can also confirm that you have the correct device with jstest:

jstest /dev/input/js0

This will confirm that the hardware and the Linux driver for your joystick is working, and that you have the right device node. Some mice, keyboards and laptops present a joystick-style software interface, so your joystick may actually be /dev/input/js1 or a higher number. If multiple js files exist, try all of them.

edit flag offensive delete link more


Thanks. Now Xbox controller is detected but axis values are fixed and can not be changed by moving axis in Xbox controller.

Rezwan gravatar image Rezwan  ( 2017-04-11 03:28:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-03-30 11:55:07 -0500

Seen: 280 times

Last updated: Mar 30 '17