Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

New Coordinate System Math


Dylan123
 Share

Recommended Posts

Hello,

We are currently using an older faro arm and an older version of CAM to measure cylindrical parts. We are creating a new coordinate system using the 3-2-1 method (plane line circle) with the origin being centered on the part. We figured out how to achieve this using the CAM software but are trying to replicate this coordinate translation using the raw data (x y z points and ABC angles of the head)  and MATLAB.

Our end goal is to export the raw data obtained from the faro arm and be able to perform the same math the CAM software is doing when you create a new coordinate system using the 3-2-1 method. Is anyone familiar with the math behind translating/rotating the machine coordinate system to a part coordinate system?

Thanks for the help

Link to comment
Share on other sites

I don’t really have an example. Basically the FARO arm has machine coordinates and all the points taken using it are in this coordinate system. What I want to know is what math is being done to each point that is taken after making a new coordinate system using the 3-2-1 method. 
 

we want to take the points that are in the machine coordinates of the faro arm , import them to matlab and replicate the math that is being done by the cam software. 
 

hopefully that makes it a little more clear. Thanks for the response. 

Link to comment
Share on other sites

Ok I’m taking a shot in the dark without knowing how the data is represented, but this may get you started.

In order to move the positions between coordinate systems you need move the point to world, then move the point to the new system.  
 

This can done by multiplying the point through the inverse (same as the transpose if the matrix is orthonormal) of the original coordinate system’s matrix (that will put the point in world; X=1,0,0; Y=0,1,0; Z=0,0,1), then multiply the point in world through the new matrix to put it in that space.

It sounds like the new matrix will be a rotation matrix based on the machines angles, but again; this is a shot in the dark.

 

Hope that helps get you going.

Link to comment
Share on other sites
On 7/16/2021 at 1:23 PM, Dylan123 said:

Hello,

We are currently using an older faro arm and an older version of CAM to measure cylindrical parts. We are creating a new coordinate system using the 3-2-1 method (plane line circle) with the origin being centered on the part. We figured out how to achieve this using the CAM software but are trying to replicate this coordinate translation using the raw data (x y z points and ABC angles of the head)  and MATLAB.

Our end goal is to export the raw data obtained from the faro arm and be able to perform the same math the CAM software is doing when you create a new coordinate system using the 3-2-1 method. Is anyone familiar with the math behind translating/rotating the machine coordinate system to a part coordinate system?

Thanks for the help

http://modernrobotics.org

 

Chapters 1-5 are great foundational material for understanding the underlying mathematics. Chapters 6, and 6.2 cover the inverse kinematic matrix math.

Luckily, a Cartesian Coordinate System uses orthogonal matrices, which belong to the SO3 Lie Group.

Mathematically, you'll need to be sure to check the New CSYS vectors are unitized, before performing any rotation or transformation on the matrix. Are you familiar with the Dot Product and Cross Product? Linear Algebra?

https://ocw.mit.edu/courses/mathematics/18-06-linear-algebra-spring-2010/

There are a couple other archived versions of 18.06 on the MIT OCW site. 

 

 

https://en.m.wikipedia.org/wiki/Euler_angles

https://en.m.wikipedia.org/wiki/Euler's_rotation_theorem

https://en.m.wikipedia.org/wiki/3D_rotation_group

https://en.m.wikipedia.org/wiki/Charts_on_SO(3)

https://ingmec.ual.es/~jlblanco/papers/jlblanco2010geometry3D_techrep.pdf

 

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...