Linear interpolation |
Ok. Let improve operating software to do linear interpolation. To do this - 1) Update position in rectangular coordinate system.
(In below I used quick basic statement style formula) If robot had only 3 joint, each joint angle will be fixed if arm tip's rectangular coordinate position was fixed. (right?) J3 angle will be calculate from X-Y position. j(3) = ATN(py / px) / .00174533# Then calculate Xm (projected arm length to X-Y plane) xm = px / COS(j(3) * .00174533#) angG and lngA will be - angG = ATN(pz / xm)
then we will have angA and angC from formura below - angA = 2 * ATN(SQR(ABS((lngA ^ 2 - (lngB
- lngC) ^ 2) / ((lngB + lngC) ^ 2 - lngA ^ 2))))
J1 and J2 angle was found j(1) = (angC + angG) / .00174533#
4) re-calicurate rectangular coordinate position. pz1 = SIN(j(1) * .00174533#)
* armlength1
|
Home | Prev | Next |