Sorry for using too large attachments with the previous copy of my message.

Erik Butchert

-------- Original Message ----------
From: butchert erik <[email protected]>
To: [email protected]
Date: 09 April 2017 at 17:51
Subject: RE: [Pdl-general] 2d rigid transformation


Hi

Perhaps I can explain my issue better if I send you a copy of part of one of the
text files I get from the co-ordinate measuring instrument (attached). The rows
are the data for each hole in a test piece for assessing XY accuracy of a
drilling machine.

Column 1 is the hole number

2 is the X program position

3 is the X measured position

4 is the X error

5, 6 and 7 are the same but for the Y axis

You can ignore the rest for the purposes of this exercise.

The problem is that when the test piece is aligned to the measuring machine it
uses 2 drilled holes that have the same programmed X (or Y) position to
establish a line parallel to the instrument axis, but of course there’s nothing
magical about these “datum” holes they are as inaccurate as any other hole, this
skews the panel against the CMM axes so the measured positions become more
inaccurate as the distance from the constructed origin increases. What I am
trying to get to is to calculate the best fit of the measured values to the
programmed ones, and therefor the X,Y positions with the alignment error
removed. If you examine the Xerror v Yerror plot in the pdf you will see instead
of being round it is elongated in the Y axis,as typically the test piece is
longer in the Y than in the X so I wonder how much of this is rotational error.

I can see references to the problem such as

https://elonen.iki.fi/code/misc-notes/2d-rigid-fit/
https://elonen.iki.fi/code/misc-notes/2d-rigid-fit/

but haven’t found anything similar within Perl/PDL

 

BTW I use PDL’s extracted from the measurement files and GnuPlot to show very
useful interactive plots so to be able to build the alignment correction within
the existing Perl script would be a good step forward.

 

Erik

 



0       0.0     -0.00536711     -0.00536711     56.99943542     56.98636627     
-0.01306915     0.24359523      -0.00640477     25.09.2012      11:15   0.25    
Kreis
1       0.0     0.01315322      0.01315322      57.99942398     58.03008652     
0.03066254      0.24359523      -0.00640477     25.09.2012      11:15   0.25    
Kreis
2       0.0     0.00179112      0.00179112      58.99941635     59.00167084     
0.00225449      0.242   -0.008  25.09.2012      11:15   0.25    Kreis
3       0.0     0.02253121      0.02253121      59.99940491     59.9981041      
-0.00130081     0.23300414      -0.01699586     25.09.2012      11:15   0.25    
Kreis
4       0.0     0.00609248      0.00609248      60.99939728     61.00444794     
0.00505066      0.24359523      -0.00640477     25.09.2012      11:15   0.25    
Kreis
5       0.0     0.01154447      0.01154447      61.99938583     61.99038315     
-0.00900269     0.23300414      -0.01699586     25.09.2012      11:15   0.25    
Kreis
6       0.0     0.00199315      0.00199315      62.9993782      62.99362946     
-0.00574875     0.24359523      -0.00640477     25.09.2012      11:15   0.25    
Kreis
7       0.0     0.02241261      0.02241261      63.99936676     63.9899559      
-0.00941086     0.23300414      -0.01699586     25.09.2012      11:15   0.25    
Kreis
8       0.0     0.00174078      0.00174078      64.99935913     65.00730133     
0.0079422       0.242   -0.008  25.09.2012      11:15   0.25    Kreis
9       0.0     0.01188208      0.01188208      65.99934387     65.98768616     
-0.01165771     0.242   -0.008  25.09.2012      11:15   0.25    Kreis
10      0.0     -0.00039018     -0.00039018     67.99932861     67.99315643     
-0.00617218     0.24359523      -0.00640477     25.09.2012      11:15   0.25    
Kreis
11      0.0     0.0049898       0.0049898       68.99931335     69.00761414     
0.00830078      0.24359523      -0.00640477     25.09.2012      11:15   0.25    
Kreis
12      0.99999011      1.01120281      0.01121271      68.99931335     
69.01556396     0.01625061      0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
13      0.99999011      0.99861538      -0.00137472     67.99932861     
67.98007202     -0.01925659     0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
14      0.99999011      0.99641913      -0.00357097     66.99933624     
67.01070404     0.0113678       0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
15      0.99999011      1.01565552      0.01566541      65.99934387     
65.97505188     -0.02429199     0.24359523      -0.00640477     25.09.2012      
11:15   0.25    Kreis
16      0.99999011      1.00011063      0.00012052      64.99935913     
64.99555206     -0.00380707     0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
17      0.99999011      1.0211035       0.0211134       63.99936676     
64.00823975     0.00887299      0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
18      0.99999011      1.01646614      0.01647604      62.9993782      
63.01015091     0.01077271      0.24359523      -0.00640477     25.09.2012      
11:15   0.25    Kreis
20      0.99999011      1.00096738      0.00097728      60.99939728     
60.99689102     -0.00250626     0.24359523      -0.00640477     25.09.2012      
11:15   0.25    Kreis
21      0.99999011      1.00544095      0.00545084      59.99940491     
60.0225563      0.0231514       0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
22      0.99999011      1.01837969      0.01838958      58.99941635     
58.99399948     -0.00541687     0.23100001      -0.01899999     25.09.2012      
11:15   0.25    Kreis
23      0.99999011      1.01225889      0.01226878      57.99942398     
57.99975586     0.00033188      0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
24      0.99999011      1.00402129      0.00403118      56.99943542     
56.99552155     -0.00391388     0.23300414      -0.01699586     25.09.2012      
11:15   0.25    Kreis
26      0.0     -0.00011152     -0.00011152     54.9994545      55.02471161     
0.02525711      0.23300414      -0.01699586     25.09.2012      11:15   0.25    
Kreis
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
pdl-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdl-general

Reply via email to