clc;
clear;
L(1)=Link([ 90 0 124 0 ],'standard');
L(2)=Link([ 0 420 160 90 ],'standard');
L(3)=Link([ -90 0 575 0 ],'standard');
L(4)=Link([ 0 645 130 -90 ],'standard');
L(5)=Link([ 0 0 0 90 ],'standard');
L(6)=Link([ 0 105 0 -90 ],'standard');
Robot=SerialLink(L,'name','SR10C');
set(gcf,'position',[500,150,800,500]);
q0=[0 0 0 0 0 0];
w=[-1500 1500 -1500 1500 0 1000];
v=[35 20];
view(3);
Robot.plot3d(q0,'tilesize',0.1,'workspace',w,'path',...
'C:\Program Files\Polyspace\R2021a\bin\sr10c','nowrist','view',v);
错误使用 stlRead>stlGetFormat (第 92 行)
Cant find file C:\Program Files\Polyspace\R2021a\bin\sr10c\link6.stl
出错 stlRead (第 77 行)
format = stlGetFormat(fileName);
出错 SerialLink/plot3d (第 141 行)
[P,F] = stlRead( fullfile(pth, sprintf('link%d.stl', i-1)) );
出错 test1
Robot.plot3d(q0,'tilesize',0.1,'workspace',w,'path',..
不太理解为什么显示找不到link6的stl文件,我这里也没有link6呀?按照规则路径中零件的命名,应该是link0-link5吧??
(我的MATLAB版本是R2021a)
这个是路径中的文件
另外仿真图像只有坐标系,如下图:
求解答!/大哭