1 function plotDifferenceCoopVel(rootPath, robotNameA, robotNameB)
7 xDotstr = '/toolCartVelCoop.txt';
8 xDotA = importMatrices(strcat(rootPath, robotNameA, xDotstr));
9 xDotB = importMatrices(strcat(rootPath, robotNameB, xDotstr));
10 nRow = min(size(xDotA, 1), size(xDotB, 1));
11 nStep = min(size(xDotA, 3), size(xDotB, 3));
13 %millisecond indicated in missionManager
15 totSecondPassed = sControlLoop*(nStep-1);
16 seconds = 0:sControlLoop:totSecondPassed;
28 ylab = ylabel('differences');
29 leg = legend('$\dot{x}$
','$\dot{y}$
', '$\dot{z}$
', '$w_x$
', '$w_y$
', '$w_z$
'); 30 tq = title("Difference of cartesian velocity applied to tool"); 32 set(ylab, 'Interpreter
', 'latex
', 'FontSize
' , ylabFontSize); 33 set(leg, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 34 set (tq, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize);