About the "FillFromEulerAngles" method in the PC SDK
HI everyone :
I try to use EulerAngle calculation Orient by the "FillFromEulerAngles" method and I did a test. By the method of " ToEulerAngles()" convert a prepared quaternion to euler Angle.
after that transform the EulerAngle into quaternion with "FillFromEulerAngles " method . It's a piece of my code:
Orient ori_Base = new Orient();
Orient ori_Test = new Orient();
double x;
double y;
double z;
ori_Base.Q1 = 0.707106781;
ori_Base.Q2 = 0.707106781;
ori_Base.Q3 = 0;
ori_Base.Q4 = 0;
ori_Base.ToEulerAngles(out x, out y, out z);
ori_Test.FillFromEulerAngles(x,y,z);
BUT .. "ori_Base" and " ori_Test" is not equal.... I think they should be the same
Thanks for anyone's advice AND i 'm sorry for my bad english...
Tagged:
0
Comments
-
I just run your code and i got these values for "ori_Base" and "ori_Test":
- ori_Base: [0.707106781, 0.707106781, 0, 0]
- ori_Test: [0.707106781373095,0.707106781,7.45058059692383E-09,7.45058059692383E-09]
If you check the difference between both values, then you will see that is less than 1E-08 (means that are the same...)
1 -
Thanks buddy. I got it。 @ John_Verheij0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings