02-13-2013 03:38 PM
Hello,
i'm wondering if already exists some example about the calculation of the Rotation matrix and Translation Vector given 3 points A-B-C in 3D space that are to be considered as markers of a rigid body, if the object is moved in space the points will become A'-B'-C' and have new coordinates. I want to calculate R and T from the knowledge of A B C and A' B' C' coords in a way that i can apply R and T to all points to calculate their new positions (P'=PR+T).
02-13-2013 03:43 PM
Have a look at the Geomertry VIs.
You can rotate 3D points using euler angles or directional cosines.
02-14-2013 11:12 AM
Also, if you have access to the LabVIEW Robotics Module, you have the following functions available:
http://zone.ni.com/reference/en-XX/help/372983C-01/lvrobovi/transforms_pal/
Those functions allow you operate with Rotation and Translation Matrices.
02-15-2013 05:32 AM
i've seen VIs... but seems there is nothing to compute a rototranslational matrix from knowing a set of three points in space............
02-15-2013 11:28 AM
Ah, I see now what you want. You want to calculate the transformation matrix given the coordinates of initial and final points. Let me think about that...
(In the meantime, google is worth a try, e.g. here's a 2D solution of a similar problem)
02-18-2013 02:57 AM
Thanks guys, i will take a look on it!
02-18-2013 11:59 AM
Basically, you are looking for the most simple scenario of "inverse kinematics" so that might be a good keyword to search. Sorry, I am not familiar with all this.