1 function plotNonCoopVel(rootPath, coordName, robotName)
9 fileName = strcat('nonCoopVel', robotName, '.txt');
10 xDot = importMatrices(strcat(rootPath, coordName, fileName));
11 xDotSqueez = squeeze(xDot);
13 nStep = size(xDot, 3);
15 %millisecond indicated in missionManager
17 totSecondPassed = sControlLoop*(nStep-1);
18 seconds = 0:sControlLoop:totSecondPassed;
21 figure('Renderer', 'painters', 'Position', [0 0 710 550])
23 plot(seconds, xDotSqueez(1:3,:));
25 xlab = xlabel('time [s]');
26 if strcmp(robotName, 'g500_A')
27 tq = title('A: Non Cooperative Tool Linear Velocities');
29 tq = title('B: Non Cooperative Tool Linear Velocities');
31 ylab = ylabel('Velocities [m/s]');
32 leg = legend('$\dot{x}$
','$\dot{y}$
', '$\dot{z}$
'); 35 plot(seconds, xDotSqueez(4:6,:)); 37 xlab2 = xlabel('time [s]
'); 38 if strcmp(robotName, 'g500_A
') 39 tq2 = title('A: Non Cooperative Tool Angular Velocities
'); 41 tq2 = title('B: Non Cooperative Tool Angular Velocities
'); 43 ylab2 = ylabel('Velocities [rad/s]
'); 44 leg2 = legend('$w_x$
', '$w_y$
', '$w_z$
'); 47 set(leg, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 48 set (tq, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize); 49 set (ylab, 'Interpreter
', 'latex
', 'FontSize
', ylabFontSize); 50 set (xlab, 'Interpreter
', 'latex
', 'FontSize
', xlabFontSize); 51 set(leg2, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 52 set (tq2, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize); 53 set (ylab2, 'Interpreter
', 'latex
', 'FontSize
', ylabFontSize); 54 set (xlab2, 'Interpreter
', 'latex
', 'FontSize
', xlabFontSize); 77 % ylab = ylabel(strcat('NonCooperative vel of
' , robotName ,' [m/s], [rad/s]
')); 78 % tq = title(strcat(robotName, ' Non Cooperative vel of tool $J_{tool} \dot{y}$
')); 81 % leg = legend('$\dot{x}$
','$\dot{y}$
', '$\dot{z}$
', '$w_x$
', '$w_y$
', '$w_z$
'); 83 % leg = legend('$\dot{x}$
','$\dot{y}$
', '$\dot{z}$
', '$w_y$
', '$w_z$
'); 86 % set(leg, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 87 % set (tq, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize); 88 % set (ylab, 'Interpreter
', 'latex
', 'FontSize
', ylabFontSize);