@@ -812,6 +812,8 @@ internal bool GenerateInstructionDeclaration(
812812 /// <returns></returns>
813813 internal string GetPositionTargetValue ( RobotCursor cursor )
814814 {
815+ // adjusting the action's rotation to match the KUKA robot's convention
816+ cursor . rotation . RotateLocal ( new Rotation ( 0 , 1 , 0 , 90 ) ) ;
815817 YawPitchRoll euler = cursor . rotation . Q . ToYawPitchRoll ( ) ; // @TODO: does this actually work...?
816818
817819 // @TODO: E6POS: External Axes (Arastoo)
@@ -828,6 +830,8 @@ internal string GetPositionTargetValue(RobotCursor cursor)
828830
829831 internal string GetPositionTargetValue_Translation_Only ( RobotCursor cursor )
830832 {
833+ // adjusting the action's rotation to match the KUKA robot's convention
834+ cursor . rotation . RotateLocal ( new Rotation ( 0 , 1 , 0 , 90 ) ) ;
831835 YawPitchRoll euler = cursor . rotation . Q . ToYawPitchRoll ( ) ; // @TODO: does this actually work...?
832836
833837 // @TODO: E6POS: External Axes (Arastoo)
@@ -867,6 +871,9 @@ internal string GetToolValue(RobotCursor cursor)
867871 throw new Exception ( "Cursor has no tool attached" ) ;
868872 }
869873
874+ // @To Do
875+ // adjusting the action's rotation to match the KUKA robot's convention
876+ //cursor.rotation.RotateLocal(new Rotation(0, 1, 0, 90));
870877 YawPitchRoll euler = cursor . tool . TCPOrientation . Q . ToYawPitchRoll ( ) ;
871878
872879 return string . Format ( CultureInfo . InvariantCulture ,
0 commit comments