I do not understand what this error is

guess=[pi/2 18]; M=[1 1 0 0 0 0]; %90 deg from home position to be along Y0
for i=1:2*n
T(2,4)=y(i);T(1,4)=x(i);
Ti=ikine(r,T,guess,M,'tol',0.01,'pinv','alpha',0.01); % this is producing the error
% Numerical method:0.01,"pinv" numerical method,0.001 step or increment
guess=Ti;
x(i)=T(1,4);y(i)=T(2,4); %record x,y
base(i)=Ti(1);arm(i)=Ti(2);control=[base;arm]; %save joint variable in a double array
end
I am trying to do robot planning and trajectory and I keep getting an error saying
Error using SerialLink/ikine -Number of robot DOF must be >= the same number of 1s in the mask matrix

댓글 수: 1

Cam Salzberger
Cam Salzberger 2022년 3월 23일
The SerialLink and the ikine function are in Peter Corke's Robotics Toolbox, not the Robotics System Toolbox. I have updated the products and tags in this question accordingly.
I would suggest starting with that library's documentation, and searching using those keywords when looking for answers.
-Cam

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Robotics에 대해 자세히 알아보기

제품

릴리스

R2017b

질문:

2022년 3월 23일

댓글:

2022년 3월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by