02-25-2020, 05:43 PM
Hi,
I'm using the RoboDK API for C#, while working with target poses, I had a conversion problem from Mat to Comau, I wanted to have the same order as in the RoboDK GUI for coordinates.
For example in my case
In RoboDK the first and third rotation are switched so I tried to use ToComau() instead of ToXYZRPW() but it does not simply switch the rotations resulting in this:
What I'm doing wrong?
Thanks in advance,
Dagas
I'm using the RoboDK API for C#, while working with target poses, I had a conversion problem from Mat to Comau, I wanted to have the same order as in the RoboDK GUI for coordinates.
Code:
Mat targetPose = target.Pose();
double[] pos = targetPose.ToXYZRPW();
Code:
pos[] = {500, 400, 600, 180, 0, 0}
In RoboDK the first and third rotation are switched so I tried to use ToComau() instead of ToXYZRPW() but it does not simply switch the rotations resulting in this:
Code:
pos[] = {500, 400, 600, 0, 90, 180}
What I'm doing wrong?
Thanks in advance,
Dagas