03-05-2024, 02:03 PM
I am using the C# API, and am stopped dead in my tracks right now because the Cartesian positions I pull from the API do not match what I see in the GUI. I am currently using a UR20, and can get the correct joint positions, X, Y, and Z positions, but I can't get the right RX, RY, and RZ positions. I see Cartesian values of (190.4mm, -959.2mm, 531.5mm, 0.974deg, 180deg, 0deg) in the "Tool Frame with respect to Reference Frame" section in the GUI when set to UR Degrees, but when I try to pull them I get the Staubli/Mecademic values of (190.4mm, -959.2mm, 531.5mm, -180deg, 0deg, -179.38deg) both in my code I wrote and the RoboDK C# API example.
I tried using the functions .ToUR() (190.4mm, -959.2mm, 531.5mm, -19.76deg, 182.60deg, 0deg)
and .ToXYZRPW() (190.4mm, -959.2mm, 531.5mm, 180deg, 0deg, 179.38deg)
on the Staubli/Mecademic pose I pull off to no avail.
Is there something I'm doing wrong in either the setup in my RoboDK file, or missing a command in the API?
Thanks for the help, and let me know if I need to send anything else.
I tried using the functions .ToUR() (190.4mm, -959.2mm, 531.5mm, -19.76deg, 182.60deg, 0deg)
and .ToXYZRPW() (190.4mm, -959.2mm, 531.5mm, 180deg, 0deg, 179.38deg)
on the Staubli/Mecademic pose I pull off to no avail.
Is there something I'm doing wrong in either the setup in my RoboDK file, or missing a command in the API?
Thanks for the help, and let me know if I need to send anything else.