1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
Everywhere
  • Everywhere
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Members
  3. Martinator5000

Posts by Martinator5000

  • Calculate TCP using centre of sphere from 4 points

    • Martinator5000
    • May 21, 2019 at 9:50 AM

    I figured it out. What was mentioned above is correct. The tr means that the value is a transform and the ! means that the transform is inverted. The transform that is used here is a homogeneous transformation matrix. I attached an example.

    After I figured out how the transform worked, I needed to know what values the matrix consisted of. I attached a sketch where I explain which transforms fills the matrix. The most important thing in this sketch is that the matrix for trSphere and trCenter use the same orientation. This means that the rotation part of both matrices is the same before trSphere is inverted. The last collum of the matrices need to be filled with the location of a point on the sphere for trSphere and the location of the reference point for trCenter.

    Finally, trSphere is inverted and is multiplied with trCenter. This gives back a matrix trTempTool. The last column of the matrix gives the temporary TCP. In the Staubli code this is done four times. The 4 calculated values for the TCP are then added up and divided by 4. This gives the average of the 4 temporary TCP's. This average is the final TCP.

    I attached a Matlab file with the calculator I made for determining the TCP.

    //Inverse sphere * center
    for l_nI=0 to 3
    trTempTool[l_nI]=!trSphere[l_nI]*trCenter

    Thank you for helping me solve this problem.

    Images

    • homo transf.jpg
      • 4.7 kB
      • 637 × 105
      • 188
    • 20190521_070746578_iOS.jpg
      • 2.97 MB
      • 4,032 × 3,024
      • 156

    Files

    homo transf.jpg_thumb 5.63 kB – 819 Downloads 20190521_070746578_iOS.jpg_thumb 31.53 kB – 826 Downloads TCPCalculatorDEG.zip 970 Byte – 251 Downloads
  • VAL3 = ! Cartesian

    • Martinator5000
    • May 15, 2019 at 1:36 PM

    Hello,

    I have found some VAL3 code which calculates a TCP from 4 points. Previously of acquiring this code already had figured out how I could calculate the center of a sphere. I am wondering how to calculate the TCP using this center and the 4 points. Attached is the code from Staubli where the TCP is calculated. Below is the piece of code that I don't understand.

    //Inverse sphere * center
    for l_nI=0 to 3
    trTempTool[l_nI]=!trSphere[l_nI]*trCenter

    In my understanding, trSphere is a Cartesian value which is equal to one of the 4 points. The ! inverts this value. My question is: Is this correct? If so, how do you invert a Cartesian?

    I hope someone can help me with this problem.

    Files

    calcTool4p7En.zip 21.9 kB – 24 Downloads
  • Calculate TCP using centre of sphere from 4 points

    • Martinator5000
    • May 14, 2019 at 4:24 PM

    In the Val3 code, they are using an inverse sphere. Below is the code I mentioned. If I understand correctly, then =! means that trSphere is the opposite of itself. trSphere is a cartesian value (x, y, z, Rx, Ry, Rz) of a point on the sphere. What would be the opposite of a cartesian value like this?
    They also mention an inverse sphere. There are no calculations in the file for an inverse sphere. Is there a function in the Staubli controller that does this, or does this happen somewhere else?

    //Inverse sphere * center
    for l_nI=0 to 3
    trTempTool[l_nI]=!trSphere[l_nI]*trCenter

  • Calculate TCP using centre of sphere from 4 points

    • Martinator5000
    • May 14, 2019 at 1:01 PM

    This is exactly what I was looking for TygerDawg. I found the files from Staubli you mentioned and attached them.
    It would also be great if someone has any extra information or an explanation of how to calculate the TCP from the center of the sphere and the 4 points.

    Files

    calcTool4p7En.zip 21.9 kB – 395 Downloads
  • Calculate TCP using centre of sphere from 4 points

    • Martinator5000
    • May 13, 2019 at 4:58 PM

    Thank you for your answer SkyeFire. However, I already know how to calculate the center of a sphere. I am looking to calculate the TCP using the center of the sphere and 4 points on its surface. I don't understand how I can calculate the X, Y, Z values of the TCP. I already know how to get X, Y, Z values of the center of the sphere.

  • Calculate TCP using centre of sphere from 4 points

    • Martinator5000
    • May 13, 2019 at 12:18 PM

    Hello,

    I am trying to calculate a TCP using 4 points. I am using cartesian data. These four points are all defined using the same reference point.
    I know how to calculate the centre of a sphere. I don't understand how to use this information to calculate a TCP.

    Currently I align the first point in a Rx 180 Ry 0 Rz 0 orientation. This way I can just take the first point minus the centre of the sphere, this gives me the TCP. I would like the first position to be in a random orientation, just like the 3 other points.

    How can I use the orientations of the 4 points to calculate a TCP using the centre of the sphere?

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download