petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.29k stars 444 forks source link

the first link a cannot be set zero #128

Open chinahuangyong opened 1 year ago

chinahuangyong commented 1 year ago
L(1) = RevoluteMDH('d', 0, 'a', 0.0, 'alpha', 0);
onelink = SerialLink(L, 'name', 'one link MDH');
teach(onelink);
数组索引必须为正整数或逻辑值。

出错 [RTBPlot.plot_options](matlab:matlab.internal.language.introspective.errorDocCallback('RTBPlot.plot_options', 'C:\Users\A\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Robotics Toolbox for MATLAB\RTBPlot.m', 797)) ([第 797 行](matlab: opentoline('C:\Users\A\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Robotics Toolbox for MATLAB\RTBPlot.m',797,0)))
                opt.tilesize = allowed(k(end)) * scale;            

出错 [SerialLink/plot](matlab:matlab.internal.language.introspective.errorDocCallback('SerialLink/plot', 'C:\Users\A\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Robotics Toolbox for MATLAB\@SerialLink\plot.m', 213)) ([第 213 行](matlab: opentoline('C:\Users\A\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Robotics Toolbox for MATLAB\@SerialLink\plot.m',213,0)))
    opt = RTBPlot.plot_options(robot, varargin);

出错 [SerialLink/teach](matlab:matlab.internal.language.introspective.errorDocCallback('SerialLink/teach', 'C:\Users\A\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Robotics Toolbox for MATLAB\@SerialLink\teach.m', 103)) ([第 103 行](matlab: opentoline('C:\Users\A\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Robotics Toolbox for MATLAB\@SerialLink\teach.m',103,0)))
        robot.plot(q, args{:});