Ask Your Question
0

Xbox One controller

asked 2017-07-06 06:26:16 -0500

tgaspar gravatar image

Hi ROS community,

We want to develop an interface to control a UR10 robot with an Xbox controller.

I can see that the joy has support for the Xbox 360 Wireless controller. My question is, would this driver also work for the Xbox One Wireless controller?

I am asking because the 360 is the old model, meaning it is harder and harder to get. On the other hand, Xbox One controller is rather easy to find and buy.

Thank you for your help! Cheers, Timo

edit retag flag offensive close merge delete

Comments

Hi, I'm just starting to do the same for a UR10. Were you successful when trying to control it with an xbox controller? I was thinking in using a controller like the logitech extreme 3d, as I think it might be easier to controll both axis but I really don't know yet. The xbox would be easier to find.

Thank you!

sophvk gravatar imagesophvk ( 2019-04-05 10:04:07 -0500 )edit

Hi there! I was successful at implementing the joystick control. However, it turned out that using the Xbox 360 (instead of the Xbox One) controller is way easier as the drivers for Linux are more available (at least that was the case when I was working on this). As for the control of the robot itself, my approach was to allow the control in Cartesian space through one of the analogue sticks and the two analogue triggers at the back of the controller. So X and Y were on the stick, Z (up and down) was on the two triggers. This controlled the translational motions. Upon a button press, the same commands started to control the rotation. If you have more questions, don't hesitate to ask, I will be glad to help.

tgaspar gravatar imagetgaspar ( 2019-04-08 04:11:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-07-06 07:59:29 -0500

gvdhoorn gravatar image

updated 2017-07-06 08:21:07 -0500

Support for joysticks and controllers in general will first and foremost depend on whether Linux (or the OS) supports it.

Any joystick using the regular /dev/js/.. devices (using the input sub system) should work and would probably only need a proper button and axes mapping config.

A quick google ("linux xbox one controller") results in things like paroj/xpad and How to Set Up an Xbox One Controller in Ubuntu (I picked a random result, I don't know whether it'll work), so it would seem there is at least some support.

I can see that the joy has support for the Xbox 360 Wireless controller

It's hopefully clear that joy doesn't really have support for anything. It just uses the regular Linux joystick (or really: input sub system) support.

I expect the joy node will pick the jsX devices up and from there on things should just work (provided you configure the mapping).

edit flag offensive delete link more

Comments

Thank you very much for your answer.

I did check if the Xbox One Wireless controller has a Linux driver and came to the same conclusion as you did: that it should work. But of course I wanted to hear a second opinion on that.

I will provide my findings and update once I try it.

Thanks again.

tgaspar gravatar imagetgaspar ( 2017-07-06 10:11:26 -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

Stats

Asked: 2017-07-06 06:26:16 -0500

Seen: 2,400 times

Last updated: Jul 06 '17