Let’s look at numerical approaches to inverse kinematics for a couple of different robots and learn some of the important considerations.

For RTB10.x please note that the mask value must be explicitly preceded by the ‘mask’ keyword. For example:

>> q = p2.ikine(T, [-1 -1], 'mask', [1 1 0 0 0 0])