How can I obtain values which are same on my robot (UR5) when using MATLAB as a client?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I wrote a short program which reads data from the TCP/IP port of UR5. It reads the range of data I need but they do not tally with corresponding data on the robot. I need to be getting same thing, so as to use the data obtained while working with robot for my Thesis conclusion. Any help? MY MATLAB CODE AND RESULT SO FAR clear all
HOST = '192.168.56.101'; PORT_30003 = 30003;
while (true) s = tcpclient(HOST, PORT_30003);
disp('connected and starting program'); disp('data received:');
data = read(s, 80, 'uint8');
disp(data(56:61)); disp(data(74:79));
pause(1); end RESULT OBTAINED:
client connected and starting program data received: 116 68 45 24 0 0
0 0 0 0 0 0
connected and starting program data recived: 116 68 45 24 0 0
0 0 0 0 0 0
connected and starting program data received: 116 68 45 24 0 0
0 0 0 0 0 0
Same continuously since the robot isn't moved but is so different from the values in my robot. The 1st line is for the Cartesian coordinates (X,Y,Z,RX,RY,RZ) but the values on my robot(URSim 3.5.3) at the time of running the program were: -120.11mm, -431.76mm, 146.07mm, 0.0012, -3.1664, -0.0395 and the 2nd one is for Gripper state (X,Y,Z,RX,RY,RZ). I do not know if the problem is with wrong use of datatype in the program because I just thought uint8 should be the right type to use. ANY HELP?
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Robotics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!