Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

XBOX controller

#1
Hi all,

I tried to set up an xbox controller with RoboDK.
No succes...
Can someone help me with this.

Thanks in advance.
#2
Hello!

I'm glad you are using the Xbox Controller App, I'm sure you will find it convenient for your applications.
The source code and the app is available in our GitHub repository, here: https://github.com/RoboDK/Plug-In-Interf...Controller.

What issues are you having? Which controller are you using?

First, ensure the device is set up correctly on the host PC. It should be present in the device manager / Bluetooth devices.
Is it working with other applications?

If you are using an Xbox One controller with the Wireless Adapter, try to plug the controller via USB once before using it.
You can also update the firmware with Xbox Accessories: https://www.microsoft.com/en-ca/p/xbox-a...blggh30xj3.

Second, ensure the app is properly installed in RoboDK.
You can either copy the source code of the app in C:\RoboDK\Apps\, or install it using the rdkp file : https://github.com/RoboDK/Plug-In-Interf...oader.rdkp.
More info on packaged apps here: https://github.com/RoboDK/Plug-In-Interf...ps#package.

Third, the app should be visible on the right toolbar. If not, Shift+I and enable App Loader, Shift+A and enable Xbox Controller.

Finally, you can click on the controller icon to start the app. 
If no supported device is found, a pop-up will appear. If multiple are found, it will default to the first one.
You need to be engaging the right trigger at all time to activate movements, as it is used as a safeguard.

Let me know if this solves your issue!
Please read the Forum Guidelines before posting!
Find useful information about RoboDK by visiting our Online Documentation.
#3
Hi Sam,

Got it working !
Thanks for the help.

Rick
#4
Hi Sam,

Only one question.
It seems not possible to move te robot around the TCP.
Is that correct? or is it me?

Rick
#5
Hi Rick,

If you have a somewhat calibrated TCP in RoboDK, you can toggle between translation and rotation by pressing the left joystick.

At the time of this post, the mappings are:
  • Use the right trigger to engage the safeguard and enable movements.
  • Press and hold X (X axis), Y (Z axis) or B (Z axis) to select an axis.
  • Use the D-pad up or down to move the robot along the selected axis.
  • Use the D-pad left or right to increase/decrease the steps.
  • Press the left joystick to toggle between translation (default) and rotation of the TCP.
  • Press the right joystick to toggle between MoveJ (default) and MoveL.
  • Press both bumpers to Home. Note: You can't stop homing, even with the safeguard released.
Please read the Forum Guidelines before posting!
Find useful information about RoboDK by visiting our Online Documentation.
#6
Hi Sam,

I got that so far.
But when i choose rotation z/y/x is does not move on the tcp.
I will try to change the tcp and see if works.

Thanks.
#7
Hi Rick,

You should see status updates in the status bar of RoboDK (bottom of the screen).
By default, movements are blocked when the joint configuration changes to avoid unexpected movements (elbow up to elbow down, for instance).
Depending on your robot joint configuration, that may be the case (this often happens at the Home position).

You can either remove this safety in XboxController.py, or by jogging the robot out of this configuration with RoboDK directly or in translation mode.
The same applies for singularities.
Please read the Forum Guidelines before posting!
Find useful information about RoboDK by visiting our Online Documentation.
#8
Hi Sam,

Got it.

Thanks.
#9
(01-04-2022, 02:13 PM)Sam Wrote: Hello!

I'm glad you are using the Xbox Controller App, I'm sure you will find it convenient for your applications.
The source code and the app is available in our GitHub repository, here: https://github.com/RoboDK/Plug-In-Interf...Controller.

What issues are you having? Which controller are you using?

First, ensure the device is set up correctly on the host PC. It should be present in the device manager / Bluetooth devices.
Is it working with other applications?

If you are using an Xbox One controller with the Wireless Adapter, try to plug the controller via USB once before using it.
You can also update the firmware with Xbox Accessories: https://www.microsoft.com/en-ca/p/xbox-a...blggh30xj3.

Second, ensure the app is properly installed in RoboDK.
You can either copy the source code of the app in C:\RoboDK\Apps\, or install it using the rdkp file : https://github.com/RoboDK/Plug-In-Interf...oader.rdkp.
More info on packaged apps here: https://github.com/RoboDK/Plug-In-Interf...ps#package.

Third, the app should be visible on the right toolbar. If not, Shift+I and enable App Loader, Shift+A and enable Xbox Controller.

Finally, you can click on the controller icon to start the app. 
If no supported device is found, a pop-up will appear. If multiple are found, it will default to the first one.
You need to be engaging the right trigger at all time to activate movements, as it is used as a safeguard.

Let me know if this solves your issue!

Hi Sam, I am trying the same thing, but the source code you mentioned is not available. Can you please provide it? At the moment I controlling the real robot using keyboard through this example: https://robodk.com/doc/en/PythonAPI/exam...a-keyboard
but the motion is not that smooth, the robot has a jerky motion! How did you overcome this?
#10
I just got back to you on the other post:
https://robodk.com/forum/Thread-RoboDK-n...8#pid17638
  




Users browsing this thread:
1 Guest(s)