Error when solving inverse kinematics
Show older comments
Hi there,
So I am trying to solve the inverse kinematics using 'ikine', where I initially state the xyz coordinates and robot as follows:
Alpha1 = degtorad(90);
Alpha2 = degtorad(0);
Alpha3 = degtorad(0);
Alpha4 = degtorad(90);
Alpha5 = degtorad(0);
a1 = 0;
a2 = 165;
a3 = 150;
a4 = 0;
a5 = 0;
d1 = 185;
d2 = -100;
d3 = 100;
d4 = 0;
d5 = 110;
PosIn_X = 100;
PosIn_Y = 200;
PosIn_Z = 0;
L(1) = Link([0 d1 a1 Alpha1]);
L(2) = Link([0 d2 a2 Alpha2]);
L(3) = Link([0 d3 a3 Alpha3]);
L(4) = Link([0 d4 a4 Alpha4]);
L(5) = Link([0 d5 a5 Alpha5]);
Robot = SerialLink(L);
Robot.name = 'Robotic Arm';
Trans_mat = [ 1 0 0 PosIn_X; 0 1 0 PosIn_Y; 0 0 1 PosIn_Z; 0 0 0 1];
J = Robot.ikine(Trans_mat, 'q0',[0 0 0 0 0], [1 1 1 1 1 0])*180/pi
The problem is that the following error keeps coming up:
Error using SerialLink/ikine (line 164)
Number of robot DOF must be >= the same number of 1s in the mask matrix
Error in Inverse_Kinematics2 (line 34)
J = Robot.ikine(Trans_mat, 'q0',[0 0 0 0 0], [1 1 1 1 1 0])*180/pi
1 Comment
Sri Krishna Kalyan Bandaru
on 29 Dec 2019
Same question from me... i have same issue.
Answers (0)
Categories
Find more on Robotics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!