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

xbox one gamepad ros index number table for joy buttons

asked 2022-01-18 12:44:40 -0600

TCIII gravatar image

updated 2022-01-18 12:46:19 -0600

There is a "Table of index number of /joy.buttons:" for the Microsoft Xbox 360 Wireless Controller for Linux, but not for the Microsoft Xbox One Bluetooth Controller for Linux.

Where can I find such a Table or the steps necessary to create such a Table?

Regards, TCIII

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-19 07:27:47 -0600

osilva gravatar image

updated 2022-01-19 07:58:14 -0600

Hi @TCIII:

I believe if you install: sudo apt-get install ros-noetic-joy should work with Xbox One.

To test your joystick, check the tutorial: http://wiki.ros.org/joy/Tutorials/Con...

In Linux:

ls /dev/input/  #to check if Linux detecting input
sudo jstest /dev/input/jsX  #replace X with your joystick number such as joy0 or joy1
ls -l /dev/input/jsX   #test the joystick

In ROS:

rosparam set joy_node/dev "/dev/input/jsX"
rosrun joy joy_node
rostopic echo joy

Take a look at this example of implementation: https://github.com/2788west/cerusbot/... https://johanschwind.medium.com/mobil...

The Xbox One controller has slight changes in the button naming convention compared to the Xbox 360 version.

Check this link for the table: https://ritchielozada.com/2016/01/16/...

I believe the wiki link needs to be updated with this info.

edit flag offensive delete link more

Comments

@osilva: +100 for taking the time to write an answer.

Please do not post (almost) link-only answers though.

Please try to make your answers stand-alone, such that if the links you refer to go stale / disappear, your answer retains its value.

gvdhoorn gravatar image gvdhoorn  ( 2022-01-19 07:31:43 -0600 )edit

Thank you @gvdhoorn, I will update the question further.

osilva gravatar image osilva  ( 2022-01-19 07:45:26 -0600 )edit

@osilva, Thanks for the response, much appreciated. I am controlling an Arlobot robot with a MS Xbox One Bluetooth gamepad in place of a Xbox 360 wireless controller and it works for me, however I would like to change some of the key hex codes in the xbox .yaml file to suit the Xbox One better. That was the reason I was wondering if there was a ready made Xbox One "Table of index number" or the steps required to build one. I assume that the output of jstest for the Xbox One is used to generate a "Table of index number"? TCIII

TCIII gravatar image TCIII  ( 2022-01-19 08:55:30 -0600 )edit

Hi @TCIII the last link has a table that you can use, I compared it to the wiki link and they are very similar.

osilva gravatar image osilva  ( 2022-01-19 12:14:00 -0600 )edit

@osliva,

Thanks for the response, much appreciated.

TCIII

TCIII gravatar image TCIII  ( 2022-01-20 14:53:24 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2022-01-18 12:44:40 -0600

Seen: 488 times

Last updated: Jan 19 '22