필터 지우기
필터 지우기

robotics: manipulators arm

조회 수: 4 (최근 30일)
James Patrick
James Patrick 2020년 2월 13일
댓글: James Patrick 2020년 2월 13일
hello!!!!
I'm trying to modalise kinematics and dynamics of a scarat 4- DOF (RRPR) with one joint prismatics using toolboxes of Peter Corke.
I don't know how to obtaint dynamics equations with MATLAB and simulate the kinematics.
Thsese are my 2 codes that I have wrote .
the first code this is the error
Error using sym/subsindex (line 769)
Invalid indexing or function definition. When defining a function, ensure that the arguments are symbolic variables and
the body of the function is a SYM expression. When indexing, the input must be numeric, logical, or ':'.
Error in sym/subsref (line 814)
R_tilde = builtin('subsref',L_tilde,Idx);
the second code this the error
Error using tb_optparse (line 303)
unknown options: mask
Error in SerialLink/fkine (line 59)
opt = tb_optparse(opt, varargin);
the first it is to draw et flower and the second is for dynamics

채택된 답변

Walter Roberson
Walter Roberson 2020년 2월 13일
A_02 = simplify( A_01(q1)*A_12(q2));
That returns an array, not a function handle or symbolic function.
A_03 = simplify(A_02(q2)*A_23(d3));
With A_02 being an array, q2 is attempting to index it.
A_02 involves two variables, so I cannot predict which variable you want q2 to substitute for (function handle case.)
  댓글 수: 8
James Patrick
James Patrick 2020년 2월 13일
Thank's ...
I have arrange the code like you have told me but the the simulation give me a new error . this is it:
Index exceeds matrix dimensions.
Error in SerialLink/plot>create_robot (line 469)
d = norm( d(4:6)-d(1:3) ) / 72;
Error in SerialLink/plot (line 252)
handle = create_robot(robot, opt);
this is the new code. I think that the error is in the plot
James Patrick
James Patrick 2020년 2월 13일
Thank's for your help it is good now!!!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by