From 16f6f375b56a3adb3dbc617b48cbd7c3a2187912 Mon Sep 17 00:00:00 2001 From: brothermechanic Date: Mon, 27 Mar 2023 08:32:18 +0300 Subject: [PATCH] change rotation export as XYZW quaternion --- cg/freecad/Frames/Tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cg/freecad/Frames/Tools.py b/cg/freecad/Frames/Tools.py index ef983d9..5c8d9c3 100644 --- a/cg/freecad/Frames/Tools.py +++ b/cg/freecad/Frames/Tools.py @@ -54,10 +54,10 @@ def placement2pose(pl, scale=1e-3): "z": pl.Base.z*scale }, "orientation": { - "x": pl.Rotation.Axis.x, - "y": pl.Rotation.Axis.y, - "z": pl.Rotation.Axis.z, - "w": pl.Rotation.Angle + "x": pl.Rotation.Q[0], + "y": pl.Rotation.Q[1], + "z": pl.Rotation.Q[2], + "w": pl.Rotation.Q[3] } }