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!