Speeding up robot workspace, 3 nested for loops

I am trying to create the workspace (overall reachability of the end effector of a 3DOF robot) but the task is taking a very long time, any idea on how to speed up this code ?
L(1) = Link([0 84.5 40 (pi/2)]);
L(2) = Link([0 0 200.43 0]);
L(3) = Link([0 215.02 28.5 0]);
Uarm = SerialLink(L);
for i=0:(5*pi/180):(180*pi/180)
for j=0:(5*pi/180):(180*pi/180)
for k=0:(5*pi/180):(180*pi/180)
Uarm.fkine([i j k]);
tranimate(Uarm.fkine([i j k]));
Uarm.plot([i j k])
hold on
end
end
end

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Robotics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by