clc;
clear all;
a3=200;
d1=130;
d5=275;
d7=90;
q1=50;
q2=25;
q3=40;
q4=35;
q5=80;
q6=60;
q7=110;
Ss=( [q1 q2 q3 q4 q5 q6 q7]* pi/180);
l(1) = Link([0 d1 0 0]);
l(2) = Link([0 0 0 -pi/2]);
l(3) = Link([0 0 a3 pi/2]);
l(4) = Link([0 0 0 -pi/2]);
l(5) = Link([0 d5 0 pi/2]);
l(6) = Link([0 0 0 -pi/2]);
l(7) = Link([0 d7 0 pi/2]);
hamir=SerialLink (l);
miro.name='hamir.1453';
[Q,QD,QDD] = mtraj(@lspb, [0 2 3 1 0 2 0], [1 -1 -3 5 4 9 8],1);
J=hamir.jacob0(Ss);
[m, cm, i, gr, mi, mf]=hamir.dyn(J);

댓글 수: 6

Image Analyst
Image Analyst 2020년 6월 4일
What I get is
Unrecognized function or variable 'Link'.
Error in test4 (line 15)
l(1) = Link([0 d1 0 0]);
And I'm sure if I got past that I'd have a problem with mtraj().
What line did you have the problem with? Please read this link before answering.
Adam Danz
Adam Danz 2020년 6월 4일
Provide the entire error message (all of it) and tell us what line is causing the problem, according to the error message.
salih akin
salih akin 2020년 6월 4일
@Adam Danz last line causing the error
salih akin
salih akin 2020년 6월 4일
@Image Analyst I am sorry i am new here and i am learing how to use effectively last line which is hamir.dyn have a problem.
Adam Danz
Adam Danz 2020년 6월 4일
If the last line is producing the error, that means the hamir.dyn function has less than 6 output.
When you are asking about an error, you much share the entire error message in order for us to have all of the beneficial information.
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2020년 6월 4일
편집: Sulaymon Eshkabilov 2020년 6월 4일
where are your function files//functions: Link(), lspb(), SerialLink?

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

답변 (0개)

질문:

2020년 6월 4일

편집:

2020년 6월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by