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
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
  5. Manuals, Software and Tools for Fanuc Robots (you should look here first before posting)
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Position Converter - Convert from XYZWPR Rep to Joint Rep and Back

  • Nation
  • November 27, 2018 at 12:18 AM
  • Thread is Resolved
  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • September 20, 2019 at 9:30 PM
    • #21
    Quote from SkyeFire

    How does that work? I'm not sure we're using the same terminology here -- I know that when I'm programming a Fanuc vs a KUKA, and using my hand to work out what angles I need to use, I have to rotate in completely different sequences.

    Its a property of extrinsic (always rotating about world frame) vs intrinsic (rotating about the frame created from the previous rotation (the ' and '' notations)) Euler rotations.

    To quote the wiki article on it:

    Quote from Wikipedia article on Davenport chained rotations

    Any extrinsic rotation is equivalent to an intrinsic rotation by the same angles but with inverted order of elemental rotations, and vice versa. For instance, the intrinsic rotations x-y’-z″ by angles α, β, γ are equivalent to the extrinsic rotations z-y-x by angles γ, β, α.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • September 23, 2019 at 3:50 PM
    • #22

    Ah! That explains it. I've only ever worked in the intrinsic context, b/c that's how all the normal robot coding works.

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • April 11, 2020 at 6:14 AM
    • #23

    I've updated the position converter to v1.1.

    Changes:

    Added support for R2000iB/210F and the 165F.

    Added the ability to convert on robots with multiple groups. However only GP1 will convert.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Online
    MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,418
    • September 28, 2020 at 2:55 PM
    • #24

    Hi,

    Quote from Nation

    Yes they are. However, we are both right! Rx - Ry' - Rz'' is equivalent to Rz - Ry - Rx.

    probably not

    Kuka is using Rz - Ry' - Rx"

    in accordance to the quote - it is not the same

    For technichians it is the best way always rotate around the new coordinate system (right/(left) hand rule)

    I am using the right hand rule with my left hand; so I can use my right hand for the direction of rotation.

    Quote from Nation

    The math will have slight differences from a conversion done on the Fanuc controller vs a conversion done by this program. Typically the differences are in the order of hundredths to thousandths of a millimeter

    yes, agree you are completely off - what's about the angles?

    When I made first comparison between the robot reading and my values I was off about the same.

    After adjusting (PI, atan_2, etc.) I got almost the same values (off about 0.00001 mm or deg)

    There is actually not only one set of DH Parameter (for kuka there are at least 4 sets)

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • September 28, 2020 at 4:03 PM
    • #25
    Quote from MOM

    probably not

    What. Did you even read the wiki article I referenced? This is a mathematical concept that that has been proven. Extrinsic rotations of a particular order are the same as Intrinsic rotations with the order reversed. We were not discussing the order of rotations a particular robot uses.

    Quote from MOM

    yes, agree you are completely off - what's about the angles?

    Angles are typically fine. "Completely off" is a bit of a strech here. Being off by a few microns on a robot not capable of repeating ten times the error my program introduces is a non issue. I don't feel like chasing down rounding errors in Fanuc's or my code when it produces the results I want within an acceptable margin of error.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Online
    MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,418
    • September 28, 2020 at 6:31 PM
    • #26

    Hi,

    Quote from MOM

    yes, agree you are completely off - what's about the angles?

    Your quote: typically the differences are in the order of hundredths to thousandths of a millimeter

    to be honest - could be better

    Quote from Nation

    Yes they are. However, we are both right! Rx - Ry' - Rz'' is equivalent to Rz - Ry - Rx.

    This is correct - but not working for kuka

    Kuka is using Rz - Ry' - Rx"

    in accordance to the quote - it is not the same

    Quote from Nation

    We were not discussing the order of rotations a particular robot uses.

    This I missed, sorry

  • HawkME
    Reactions Received
    567
    Trophies
    10
    Posts
    3,268
    • September 28, 2020 at 9:23 PM
    • #27

    I think 1 hundredth of a mm is more than adequate for any industrial robotic application, and I have had to deal with some very demanding applications.

  • Online
    MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,418
    • September 28, 2020 at 10:19 PM
    • #28

    HawkME

    I agree, normally distance of better than 0.01 mm is very good. But I also asked about degree.

    Althogether Nation did and still doing a very good job.

    If anyone had the idea, that I want to blame him - I am very sorry, this was never the case.

    He even encouraged me to work more on the robot models (ABB, FANUC, KUKA) in order to get a better understanding of the differences.

    regards

    MOM

  • Frank Yeh
    Reactions Received
    2
    Trophies
    2
    Posts
    34
    • July 26, 2022 at 9:56 PM
    • #29

    This is a really cool. I understand the overview that you provided, but will need to brush up my linear algebra to understand how the nuts and bolts are actually put together. Thank you for sharing it with us.

  • Mikepard
    Reactions Received
    2
    Trophies
    2
    Posts
    13
    • December 10, 2022 at 11:52 PM
    • #30

    Hello,

    I just want to know how did you do that freeware? which tool or software did you use? I want to do one application too.

    Regards

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • December 11, 2022 at 12:33 AM
    • #31

    I used visual studio 2019 community edition, and just wrote everything in C#.

    I used roboguide to verify the results, and to generate the test programs.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • Frank Yeh
    Reactions Received
    2
    Trophies
    2
    Posts
    34
    • December 16, 2022 at 7:24 PM
    • #32

    Hi Nation I am trying to run the program and it is also showing that the program can not find version.dg (I did an all of the above backup of the MD) I tried looking for the file on the robot itself and I don't seem to be able to find the file there either. Is there a way for me to bypass this step and enter the values manually?

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • December 16, 2022 at 8:55 PM
    • #33

    Would you be able to post your backup, or send it to me in direct message?

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • markmcl
    Trophies
    3
    Posts
    2
    • November 15, 2023 at 1:31 PM
    • #34

    I’m in the process of learning the kinematics. It looks like you wrote this in c#. Would you be willing to share source code so I could use it to help me understand the process?

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • November 15, 2023 at 8:55 PM
    • #35
    Quote from markmcl

    I’m in the process of learning the kinematics. It looks like you wrote this in c#. Would you be willing to share source code so I could use it to help me understand the process?

    Sure. I've made it open source. Not the greatest code or organization, but you can view it on github.

    https://github.com/SynapticRobotics/PositionConverter.

    IK Conversion is done here.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • donfeng2121
    Posts
    9
    • November 12, 2024 at 6:07 PM
    • #36
    Quote from Strini

    The tool needs a 'version.dg' file that is missing in my backups.

    Hello. Can you help me solve this problem?

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • November 12, 2024 at 7:03 PM
    • #37

    Did you take a full MD: backup?

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • donfeng2121
    Posts
    9
    • November 12, 2024 at 7:06 PM
    • #38

    Yes.

  • donfeng2121
    Posts
    9
    • November 12, 2024 at 7:36 PM
    • #39

    Please check your email from michka.84848484.

  • Nation
    Typical Robot Error
    Reactions Received
    522
    Trophies
    9
    Posts
    1,900
    • November 12, 2024 at 8:11 PM
    • #40

    That was not a full MD: backup. That was a AoA backup, and an image.

    You will need to copy all the contents of the MD: device.

    This guy goes over how to do it.

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  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