Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. maths question

maths question

Scheduled Pinned Locked Moved The Lounge
helpgraphicsquestioncsscom
70 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joan M
    wrote on last edited by
    #1

    Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

    L OriginalGriffO H Kornfeld Eliyahu PeterK J 20 Replies Last reply
    0
    • J Joan M

      Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Joan M wrote:

      With 2 circumferences of a known radius I would know the distance between both (Radius 1 [r1] (big) - Radius 2 [r2] (small)).

      Surely that will depend on where the two devices are situated? Or, are you saying that you know the distance between them? I am having difficulty picturing the actual setup of the devices, and the item they are trying to measure.

      J 1 Reply Last reply
      0
      • L Lost User

        Joan M wrote:

        With 2 circumferences of a known radius I would know the distance between both (Radius 1 [r1] (big) - Radius 2 [r2] (small)).

        Surely that will depend on where the two devices are situated? Or, are you saying that you know the distance between them? I am having difficulty picturing the actual setup of the devices, and the item they are trying to measure.

        J Offline
        J Offline
        Joan M
        wrote on last edited by
        #3

        The 3 measuring devices are mounted around the circular part. But I don't know the exact position and orientation of the measuring devices because the mechanical engineers can't guarantee it. I need to find the position and angle of the 3 measuring devices given the known circular parts and the measures the devices take. Circular parts are always mounted in the same center position.

        L 1 Reply Last reply
        0
        • J Joan M

          Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #4

          I know it's Monday morning, and I'm still MucusMan: The Human Hagfish but I need a diagram to work out what the heck you are asking about there ...

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          J 1 Reply Last reply
          0
          • J Joan M

            Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

            H Offline
            H Offline
            honey the codewitch
            wrote on last edited by
            #5

            I'm a little confused by what you're asking, but if I understand you: You first need the 2d Cartesian points of each radius (x,y) Then you can do trig on them to get the angles out of it. My trig is rusty, but that's where to start. Once you have that, you should be able to do this: trigonometry - Finding the angle between two points - Mathematics Stack Exchange[^]

            Real programmers use butterflies

            J 1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              I know it's Monday morning, and I'm still MucusMan: The Human Hagfish but I need a diagram to work out what the heck you are asking about there ...

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony AntiTwitter: @DalekDave is now a follower!

              J Offline
              J Offline
              Joan M
              wrote on last edited by
              #6

              https://i.stack.imgur.com/a2AyG.png[^] 2 circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. But I get a distance from the measuring device to the circular master part mounted. And I have 2 master circular parts. The red lines in the drawing are the vector lines the measuring device measures would be placed into.

              1 Reply Last reply
              0
              • J Joan M

                The 3 measuring devices are mounted around the circular part. But I don't know the exact position and orientation of the measuring devices because the mechanical engineers can't guarantee it. I need to find the position and angle of the 3 measuring devices given the known circular parts and the measures the devices take. Circular parts are always mounted in the same center position.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Joan M wrote:

                The 3 measuring devices are mounted around the circular part.

                What does that mean; the circular part of what? I really think we need a picture.

                J 1 Reply Last reply
                0
                • H honey the codewitch

                  I'm a little confused by what you're asking, but if I understand you: You first need the 2d Cartesian points of each radius (x,y) Then you can do trig on them to get the angles out of it. My trig is rusty, but that's where to start. Once you have that, you should be able to do this: trigonometry - Finding the angle between two points - Mathematics Stack Exchange[^]

                  Real programmers use butterflies

                  J Offline
                  J Offline
                  Joan M
                  wrote on last edited by
                  #8

                  Yes, if I had the xy would be easy, I don't know the position of the measuring device neither the angle it is mounted... :(

                  H 1 Reply Last reply
                  0
                  • L Lost User

                    Joan M wrote:

                    The 3 measuring devices are mounted around the circular part.

                    What does that mean; the circular part of what? I really think we need a picture.

                    J Offline
                    J Offline
                    Joan M
                    wrote on last edited by
                    #9

                    https://i.stack.imgur.com/a2AyG.png[^] You are super right, sorry... You can see more explanations in the original question just under the link itself. Thanks!

                    L 1 Reply Last reply
                    0
                    • J Joan M

                      Yes, if I had the xy would be easy, I don't know the position of the measuring device neither the angle it is mounted... :(

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #10

                      Then I'm not sure what you're asking is possible. you need some way to get 2 points out of this to get an angle. That's the minimum you need (and the 3rd point is implicit) So your task now is to divine two points. Somehow.

                      Real programmers use butterflies

                      J 1 Reply Last reply
                      0
                      • H honey the codewitch

                        Then I'm not sure what you're asking is possible. you need some way to get 2 points out of this to get an angle. That's the minimum you need (and the 3rd point is implicit) So your task now is to divine two points. Somehow.

                        Real programmers use butterflies

                        J Offline
                        J Offline
                        Joan M
                        wrote on last edited by
                        #11

                        yes... :sigh:

                        H 1 Reply Last reply
                        0
                        • J Joan M

                          https://i.stack.imgur.com/a2AyG.png[^] You are super right, sorry... You can see more explanations in the original question just under the link itself. Thanks!

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #12

                          Unless the devices are all measuring to the same known point in the circle you do not have any way of relating the values to each other.

                          1 Reply Last reply
                          0
                          • J Joan M

                            Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

                            Kornfeld Eliyahu PeterK Offline
                            Kornfeld Eliyahu PeterK Offline
                            Kornfeld Eliyahu Peter
                            wrote on last edited by
                            #13

                            What I do not understand is what distances those 3 devices measuring... What is the significance of endpoint of the red lines in the drawing?

                            "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                            "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                            J 1 Reply Last reply
                            0
                            • J Joan M

                              yes... :sigh:

                              H Offline
                              H Offline
                              honey the codewitch
                              wrote on last edited by
                              #14

                              maybe try printing out your drawing and just trying to use a pen to draw the triangles you need. Then see where the points fall. From there, see where the points are in relation to the circles and see if that can't help you. It's a shot in the dark but it's the best i got.

                              Real programmers use butterflies

                              1 Reply Last reply
                              0
                              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                What I do not understand is what distances those 3 devices measuring... What is the significance of endpoint of the red lines in the drawing?

                                "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                                J Offline
                                J Offline
                                Joan M
                                wrote on last edited by
                                #15

                                The measured distances are the length of the red lines when they cross the circles.

                                Kornfeld Eliyahu PeterK 1 Reply Last reply
                                0
                                • J Joan M

                                  Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

                                  J Offline
                                  J Offline
                                  Jon McKee
                                  wrote on last edited by
                                  #16

                                  With no further information I unfortunately think this is a "software can't fix your mechanical problems" situation. I'm not a math wizard though so maybe someone else will chime in. If there's a way to guarantee a distance between the measurement device and the center of the measured sphere, I think it may be possible. You'd have both sides of the triangle coming out of the measurement device (the "true" distance [distance to center - radius] and the measured) and you could use spherical trigonometry to determine the angle between those sides (the angle of the measurement device) given the difference between the two distances. Honestly that's beyond me though and relies on having perfect spheres. I was never good at trig :sigh: EDIT: Also this would in no way let you know where in the xy plane those measurement devices are.

                                  1 Reply Last reply
                                  0
                                  • J Joan M

                                    Hi all, I need help in a math issue: Let's say I have 3 measuring devices which give me a distance. Mechanically those 3 sensors are mounted more or less in the right position, but we can't be sure of the angle neither position the measuring devices are mounted. I have 3 Mastering parts (3 circumferences of a known radius) that I can mount into the machine at any moment and that I want to use to calibrate the system. The measuring error of the 3 measuring devices can be dismissed. this is a small diagram to represent the problem: https://i.stack.imgur.com/a2AyG.png[^] 2 known master circumferences give me a distance [d1] between circumferences (d1 = radius 1 - radius 2). For each circumference the sensor will give me a different measure m1 and m2. Given the difference between r1-r2 and m2-m1 could I find the angle in which the measuring device is mounted? Summarizing: 2 master circumferences mounted in the same center. 3 external measuring devices mounted completely unaligned with the center. I don't know the measuring devices position. The red lines in the drawing are the vector lines the measuring device measures would be placed into. The real measures (in this drawing) would be the distance from the sensor to the position where the red line crosses a circle. Any help will be welcome... Thank you all...

                                    M Offline
                                    M Offline
                                    musefan
                                    wrote on last edited by
                                    #17

                                    Your question is really unclear, are you trying to calculate d1? Regardless, if you have neither the positions nor the angles of the devices then you can't get an accurate calculation. Your best option would be to use which ever device gives you the shortest distance, as that will be the most accurate - but certainly cannot guarantee a correct result. Essentially to get the correct result you need a device pointed directly at the centre point. If they are not pointing directly at the centre point then you could probably compensate for this offset is your calculations, but you would need the angles and positions to be able to do so.

                                    J 1 Reply Last reply
                                    0
                                    • M musefan

                                      Your question is really unclear, are you trying to calculate d1? Regardless, if you have neither the positions nor the angles of the devices then you can't get an accurate calculation. Your best option would be to use which ever device gives you the shortest distance, as that will be the most accurate - but certainly cannot guarantee a correct result. Essentially to get the correct result you need a device pointed directly at the centre point. If they are not pointing directly at the centre point then you could probably compensate for this offset is your calculations, but you would need the angles and positions to be able to do so.

                                      J Offline
                                      J Offline
                                      Joan M
                                      wrote on last edited by
                                      #18

                                      I need to calculate XY position in which the sensor finds the part. The problem is that the sensor is at an unknown position and angle (which will be very similar to the desired one but I need a really high precision (3 micrometers)). I only get from the sensor the distance from the sensor to the part.

                                      M L 2 Replies Last reply
                                      0
                                      • J Joan M

                                        I need to calculate XY position in which the sensor finds the part. The problem is that the sensor is at an unknown position and angle (which will be very similar to the desired one but I need a really high precision (3 micrometers)). I only get from the sensor the distance from the sensor to the part.

                                        M Offline
                                        M Offline
                                        musefan
                                        wrote on last edited by
                                        #19

                                        Joan M wrote:

                                        I only get from the sensor the distance from the sensor to the part.

                                        So just to be clear. Do you just get a single value (distance) from the sensor to the outer circle? Or do you get 2 values, one for outer circle and one for inner circle?

                                        J 1 Reply Last reply
                                        0
                                        • J Joan M

                                          The measured distances are the length of the red lines when they cross the circles.

                                          Kornfeld Eliyahu PeterK Offline
                                          Kornfeld Eliyahu PeterK Offline
                                          Kornfeld Eliyahu Peter
                                          wrote on last edited by
                                          #20

                                          Like a beam that hits the surface of the circle and you have the distance without the angle?

                                          "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                                          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                                          J 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups