Closed Johnmper closed 6 years ago
I think the following code should work, however it outputs an error saying i didn't define the workspace option, which i clearly did.
q0 = [4,3]; L(1) = Link('theta',-pi/2,'alpha', pi/2,'a',1); L(2) = Link('theta', 0,'alpha',-pi/2,'a',0); R = SerialLink(L,'name','Arm'); R.plot(q0,'workspace',[-10,10,-10,10,-10,10]);
Error using RTBPlot.plot_options (line 755) Prismatic joint(s) present: requires the 'workspace' option
Error in SerialLink/plot (line 212) opt = RTBPlot.plot_options(robot, varargin);
Error in test (line 8) R.plot(q0,'workspace',[-10,10,-10,10,-10,10]);
Sorry it seems there is already a opened issue #21.
Found solution, refer to issue #21 .
I think the following code should work, however it outputs an error saying i didn't define the workspace option, which i clearly did.
Error using RTBPlot.plot_options (line 755) Prismatic joint(s) present: requires the 'workspace' option
Error in SerialLink/plot (line 212) opt = RTBPlot.plot_options(robot, varargin);
Error in test (line 8) R.plot(q0,'workspace',[-10,10,-10,10,-10,10]);