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.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 15 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 363 IRC5
- 80 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 853 RAPID Programming
- 31 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 110 Collaborative Robots
- 5 Job listings

