"Map" point between coordinate systems

In summary: Consider the following two examples:In one example, the coordinates are in the global or world coordinate system. In this example, the relationship between the two coordinate systems is defined by the angle ##\theta## between the axes.In the other example, the coordinates are in the local or project coordinate system. In this example, the relationship between the two coordinate systems is defined by the distance between the two points.The relationship between the two coordinate systems is defined by the angle ##\theta## between the axes, in the first example, or by the distance between the two points, in the second example.
  • #1
RichardWattUK
12
1
TL;DR Summary
Mapping 3D Cartesian points between coordinate systems
I've taken on a new job recently where I'm having to maintain an existing application that generates a points profile to drive a CNC machine and part of it projects points from an axial plane (which represents the machine's working axis) onto another plane which (I think) acts as as a global/world coordinate system - I'm guessing as I'm still finding the documentation from the people who worked on it a few years ago and have since left.

The application uses Newton's method to find an angle of rotation to map a point on the profile in the axial plane across to the projected plane, which works in the majority of cases, but there are some where it doesn't due to being unable to find the appropriate angle of rotation to use within 30 iterations and with an accuracy of +- 0.0001.

I've been looking at matrix-based rotations and transformations to do this, including something based on the original code that was used to do this translation which worked in a different way by finding the distance along the Y axis for the new point using Newton's method with an accuracy of +- 0.00001 in a maximum of 30 iterations.

But I can't get anything to work - I've been looking at working with the radius and angle to the point on the axial plane (the Y coordinate is taken as = 0 so we're only looking at X and Z coordinates) to the origin, but not getting anywhere with that.

I've attached an image showing how the planes & their axes are related, with "γ" on the diagram representing the projection angle between the axial and projected planes.

So my question is related to whether anyone knows of a way to perform this mapping/projection please? It's been about 20 years since I last looked at these kinds of calculations so I'm a bit out of practice with them.
 

Attachments

  • AxialAndProjected.png
    AxialAndProjected.png
    8.4 KB · Views: 190
Physics news on Phys.org
  • #2
Do you have three non planar points with original and target coordinates?
You talked about accuracy but not about which numbers do you really have to perform transformations on.
 
  • #3
Unfortunately, no to the 3 non planar points - the routine that performs the mapping was written to convert one point at a time and is called from within a loop to work through the profile.

The accuracy is the limit placed on the Newton iteration method loops for accepting the root value.

Each point is represented with a width (X coordinate, ##X_a##), a radius (Z coordinate, ##Z_a##) and an outward normal angle (##\theta_a##).

I have made some progress using the cosine of the projection angle on the X & Z coordinates to work out the projected X & Z coordinates - I'm typing this at home but my notes are back in the office, so I'll update again when I've got them - basically using:

$$X_p = cos \gamma \cdot X_a$$
$$Y_p = cos \gamma \cdot Z_a$$

When the existing method works, the projected point is offset from the axial point by a small amount on both the X and Z axes, a small amount being in the order of 0.01 mm.

I'm currently looking at how to calculate the new outward normal angle (##\theta_p##).
 
  • #4
RichardWattUK said:
I've attached an image showing how the planes & their axes are related, with "γ" on the diagram representing the projection angle between the axial and projected planes.
The diagram doesn't explain what you mean by "the radius".
 
  • #5
Stephen Tashi said:
The diagram doesn't explain what you mean by "the radius".
My apologies - I should have labelled the X axis is "the width" and the Z axis is "the radius".
 
  • #6
RichardWattUK said:
My apologies - I should have labelled the X axis is "the width" and the Z axis is "the radius".

That doesn't explain the situation. You haven't explained what type of coordinate systems are being used. Are both coodrindate systems cartesian coordinate system? If so, how is the relationship between them defined? What parameters define the relationship? For two general cartesian coordinate systems, a single parameter ##\gamma## would be insufficient.
 

1. What is a coordinate system?

A coordinate system is a mathematical system used to determine the position of a point in space. It is made up of a set of reference axes and a set of rules for measuring distances and angles.

2. What is a map projection?

A map projection is a method of representing the curved surface of the Earth on a flat surface, such as a map. It involves transforming the coordinates of points on the Earth's surface onto a two-dimensional plane.

3. How do you convert coordinates between different coordinate systems?

To convert coordinates between different coordinate systems, you need to know the equations or formulas for transforming coordinates from one system to another. These equations take into account the differences in reference axes and units of measurement between the two systems.

4. Why is it important to convert coordinates between coordinate systems?

It is important to convert coordinates between coordinate systems because different systems may be used for different purposes or by different organizations. Converting coordinates allows for accurate and consistent communication and analysis of spatial data.

5. What are some common coordinate systems used in mapping?

Some common coordinate systems used in mapping include geographic coordinate systems, such as latitude and longitude, and projected coordinate systems, such as Universal Transverse Mercator (UTM) and State Plane Coordinate System (SPCS). Other systems, such as Military Grid Reference System (MGRS) and World Geographic Reference System (GEOREF), are also commonly used for specific applications.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
2K
  • Precalculus Mathematics Homework Help
Replies
20
Views
2K
  • Differential Geometry
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
6
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
1K
Replies
31
Views
2K
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
980
Replies
1
Views
1K
Back
Top