1 function plotYDot(rootPath, robotName, ydotName)
7 yDotstr = strcat( '/', ydotName, '.txt');
8 yDot = importMatrices(strcat(rootPath, robotName, yDotstr));
10 nStep = size(yDot, 3);
12 %millisecond indicated in missionManager
14 totSecondPassed = sControlLoop*(nStep-1);
15 seconds = 0:sControlLoop:totSecondPassed;
25 leg = legend('$\dot{q}_1$
','$\dot{q}_2$
', '$\dot{q}_3$
', '$\dot{q}_4$
'); 26 ylab = ylabel('Joint command [rad/s]
'); 27 tq = title(strcat(robotName, ' Joint command sent (
' ,ydotName, '[1:4])
')); 28 set(leg, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 29 set (tq, 'Interpreter
', 'none
', 'FontSize
' , titleFontSize); 30 set (ylab, 'Interpreter
', 'none
', 'FontSize
', ylabFontSize); 33 %plot vehicle command (TODO divide linear and ang vel??) 41 leg = legend('$\dot{x}$
','$\dot{y}$
', '$\dot{z}$
', '$w_x$
', '$w_y$
', '$w_z$
'); 42 ylab = ylabel('vehicle commands [m/s], [rad/s]
'); 43 tq = title(strcat(robotName, ' Vehicle command sent (
', ydotName, '[5:10])
')); 44 set(leg, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 45 set (tq, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize); 46 set (ylab, 'Interpreter
', 'latex
', 'FontSize
', ylabFontSize);