Home› Programming
Discussion
Back to discussions page
vlad
Posts: 5 Apprentice
RTDE beginner help |
766 views
|
Answered | |
/ Most recent by vlad
in Programming
|
9 comments |

in Programming
Hello to all,
Could you please explain to me in simpler terms how RTDE communication with Universal Robots works?
I want to use this protocol of communication in an URCap to set a digital output ON or OFF and also set de speed slider to a value.
I understand how to open a socket communication but from this step I have issues.
I already have read the guide from the Universal Robot website but I cannot figure it how it works.
If I test with socket master the connection to the RTDE server but I did not receive anything.
Thank you very much and have a nice day!
Could you please explain to me in simpler terms how RTDE communication with Universal Robots works?
I want to use this protocol of communication in an URCap to set a digital output ON or OFF and also set de speed slider to a value.
I understand how to open a socket communication but from this step I have issues.
I already have read the guide from the Universal Robot website but I cannot figure it how it works.
If I test with socket master the connection to the RTDE server but I did not receive anything.
Thank you very much and have a nice day!
https://pypi.org/project/ur-rtde/
It is well documented:
https://sdurobotics.gitlab.io/ur_rtde/
Thanks for providing me the link and the info. I have read them but honestly I am still far away of understanding how it works. What I saw there is that there are some libraries which can be used in a Python or C++ app. This is very nice but I cannot understand how this files can be handled in Java which is the URCap language. The URCap example from the documentation from the link is just used to set the IP and the port for the PC which is doing the commands. I would like to do the commands from the URCap.
Maybe you can explain to me how RTDE works step by step and then I can handle this steps in Java.
Thank you in advance!
Even to use it to capture data you would need to have a server running. You could do this in Java, it’s all controlled through a TCP/IP server instance. Your best bet is to look up TCP/IP client server communications in Java. The other thing you could do if all you want is to record data to convert to script is listen to port 30001 and decode the streaming positional data from that port. This might be easier to do from Java.
I'm currently working on rtde for just path recording. What I need now is just capturing the relevant informaton (position, rotation...) as you described above. I have installed ur_rtde but don't know how to use it... Thank you for your help in advance!
ty
Thanks!
Thanks for providing me the link and the info. I have read them but honestly I am still far away of understanding how it works. What I saw there is that there are some libraries which can be used in a Python or C++ app. This is very nice but I cannot understand how this files can be handled in Java which is the URCap language. The URCap example from the documentation from the link is just used to set the IP and the port for the PC which is doing the commands. I would like to do the commands from the URCap.
Maybe you can explain to me how RTDE works step by step and then I can handle this steps in Java.
Thank you in advance!
Thanks for providing me the link and the info. I have read them but honestly I am still far away of understanding how it works. What I saw there is that there are some libraries which can be used in a Python or C++ app. This is very nice but I cannot understand how this files can be handled in Java which is the URCap language. The URCap example from the documentation from the link is just used to set the IP and the port for the PC which is doing the commands. I would like to do the commands from the URCap.
Maybe you can explain to me how RTDE works step by step and then I can handle this steps in Java.
Thank you in advance!