I have an issue understanding how RTDE Communications works.
I have established a connection of Real Time on 30001, 30002, and also the Dashboard server, and all of them are working and I understand how they work (except the fact that I do not receive any answer from the Dashboard, I already have a post on the forum for this subject).
What I understood until now is the following:
-first you need to establish a socket- this I understand
-then you will need to send RTDE_REQUEST_PROTOCOL_VERSION-here I start to have issues because I do not receive anything.
From this point I do not understand how this works.
I am currently developing a URCap and I want to set the speed and an digital output through RTDE.
I want to use this protocol because I think that if I understand this I can apply it to more complex things.
I have searched through the forum but I cannot find any example of RTDE used from Java. I cannot see how I can use the Python files from the Real-Time Data Exchange (RTDE) Guide - 22229 because the URCAP is based on Java. If I want to connect from an external PC I suppose that the files are useful but for Java I cannot see how it works.
There is an example which uses some classes but again I do not understand how this protocol works so I cannot use them.
My question is if it is possible maybe someone can provide a short example of an URCAP which uses this RTDE in Java and sets something on the robot or maybe better yet can explain it how it works step by step?
With the URCap you would use a daemon to control the RTDE server and then you can use python to write the server in.
Hello mbush ,
Thanks for the reply.
Could you please explain it in greater detail?
So for example can I use a thread from Java and not a daemon?
What that daemon/thread needs to do?
Do you have a simple example just with a digital output so I can understand. Just something basic.
I have to mention that I am a beginner in URCap Development and because of that I have a harder understanding of these concepts and how they work.
I am not a URCap developer either, I have developed RTDE running on separate servers from the robot. If you wanted to use it in Java I am not sure it would work but you would need to setup a TCP/IP server instance and perform the communication from there. I’m just not certain that it would work without it being in a daemon as I do not know that the server would say alive for instance.
Thank you for the video. I already saw it and I also saw that there are part 2 and 3 uploaded but I did not have the time to check them.
Probably more videos will be coming out soon