0
$\begingroup$

what's the quickest way to calculate a relative coordinate of a frame, as shown in the code below. The Kuka robot language this ":" is referred to as the geometric operator. I would like to perform this calculation in matlab, scilab, smathstudio or java, could you please advise on which library to use and/or how to proceed?

Frame TableTop=[x1 y1 z1 a1 b1 c1]
Frame RelCoord=[x2 y2 z2 a2 b2 c2]

Frame AbsCoord= TableTop:RelCoord
$\endgroup$
1
$\begingroup$

The operation you mentioned can be mathematically formulated as a matrix multiplication.

You build your homogeneous transformation matrices (4x4) for both frames and multiply them.

After than you can extract the 6 coordinates from the resulting matrix. Extracting position is easy, take the first three rows of the last column. Extracting rotations can be done in Matlab easily by using the dcm2angles() function.

Please not that quaterions might be a better alternative to transformation matrices, but are more complicated to implement.

$\endgroup$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.