1 function plot6DVectorDivided(rootPath, robotName, vecName)
8 vecNamestr = strcat( '/', vecName, '.txt');
9 vec = importMatrices(strcat(rootPath, robotName, vecNamestr));
12 %millisecond indicated in missionManager
14 totSecondPassed = sControlLoop*(nStep-1);
15 seconds = 0:sControlLoop:totSecondPassed;
18 figure('Renderer', 'painters', 'Position', [0 0 710 550])
25 xlab = xlabel('time [s]');
26 leg = legend('$\dot{x}$
','$\dot{y}$
', '$\dot{z}$
'); 28 if strcmp(vecName, 'toolVel4Collision
') 29 ylab = ylabel('Linear Velocity [m/s]
'); 30 tq = title('Tool Velocities due to Collisions
'); 31 elseif strcmp(vecName, 'toolVel4Grasp
') 32 ylab = ylabel('Linear Velocity [m/s]
'); 33 tq = title('Tool Velocities due to Grasp Constraint
'); 35 ylab = ylabel(' vector [?]
'); 36 tq = title(strcat(robotName, " LINEAR " ,vecName)); 45 xlab2 = xlabel('time [s]
'); 47 leg2 = legend('$w_{x}$
','$w_{y}$
', '$w_{z}$
'); 48 if strcmp(vecName, 'toolVel4Collision
') 49 ylab2 = ylabel('Angular Velocity [rad/s]
'); 50 tq2 = title('Tool Velocities due to Collisions
'); 51 elseif strcmp(vecName, 'toolVel4Grasp
') 52 ylab2 = ylabel('Angular Velocity [rad/s]
'); 53 tq2 = title('Tool Velocities due to Grasp Constraint
'); 55 ylab2 = ylabel(' vector [?]
'); 56 tq2 = title(strcat(robotName, " ANGULAR " ,vecName)); 59 set(leg, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 60 set (tq, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize); 61 set (ylab, 'Interpreter
', 'latex
', 'FontSize
', ylabFontSize); 62 set (xlab, 'Interpreter
', 'latex
', 'FontSize
', xlabFontSize); 64 set(leg2, 'Interpreter
', 'latex
', 'FontSize
' , legFontSize); 65 set (tq2, 'Interpreter
', 'latex
', 'FontSize
' , titleFontSize); 66 set (ylab2, 'Interpreter
', 'latex
', 'FontSize
', ylabFontSize); 67 set (xlab2, 'Interpreter
', 'latex
', 'FontSize
', xlabFontSize);