Hi,
I am trying to model fingers using the toolbox. A finger is modeled as a three link structure at this point, and they move within one plane. I would like to check, given a point in space, if the finger can reach that given point (match the fingertip location, I do not care about the orientation of the fingertip).
I am trying the following:
L1(1) = Link([0 0 1 0 0 0]);
L1(2) = Link([0 0 2 0 0 0]);
L1(3) = Link([0 0 3 0 0 0]);
R = SerialLink(L1,'qlim',[0 pi/2; 0 pi/2; 0 pi/2]);
Now i would like to calculate the inverse kinematics given a point:
q = R.ikine(transl([3 -3 0]),[10 10 10],[1 1 1 0 0 0])
Works fine, only that is does not take the qlim into account. I read in another thread the they are currently not taken into account at all. Are there workarounds for that?
My second approach is to use ikine3 instead:
q = r.ikine3(transl([3 -3 0]))
I get the following error message:
Undefined function or variable 'd4'.
Error in SerialLink/ikine3 (line 136)
Psi = acos((a2^2-d4^2-a3^2+V114^2+Pz^2)/(2.0*a2*r));
Looking at the function, it seems to me that d4 is never assigned the first place?!
Any help would be really appreciated,
Thomas