Hello,
I am working on a programm were i need the current coordinates of the tool (x,y,z,xr,yr,zr).
As recommended I am trying to use RTDE also because the Robot-Programm should not be touched.
Sice i want he current coordinates i want, as described on the RTDE guide, “actual_TCP_pose”. Can someone help with that topic.
The part of the code i have trouble with is:
byte[] sbuffer = new byte[1024];
byte[] buffer = new byte[1024];
sbuffer = Encoding.UTF8.GetBytes("actual_TCP_pose");
s.Send(sbuffer);
s.Receive(buffer);
txt = Encoding.ASCII.GetString(buffer);
s.Close();
For Explenation:
s = my socket --> Connection is Working. I am using Port 30004 (the RTDE port).
sbuffer = my "Send-Buffer
buffer = recieve Buffer
txt = string with is suposed to contain the Coordinates
Thanks for Help