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

Did anyone use xbox wireless controller for navigation?

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

Rezwan gravatar image

Following the tutorial here http://wiki.ros.org/joy/Tutorials/Con...

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
0

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

Comments

Thanks. Now Xbox controller is detected but axis values are fixed and can not be changed by moving axis in Xbox controller. https://drive.google.com/open?id=0B6z...

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

Question Tools

2 followers

Stats

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

Seen: 338 times

Last updated: Mar 30 '17