change rotation export as XYZW quaternion

This commit is contained in:
brothermechanic 2023-03-27 08:32:18 +03:00 committed by Igor Brylyov
parent b376c78e3b
commit 16f6f375b5

View file

@ -54,10 +54,10 @@ def placement2pose(pl, scale=1e-3):
"z": pl.Base.z*scale "z": pl.Base.z*scale
}, },
"orientation": { "orientation": {
"x": pl.Rotation.Axis.x, "x": pl.Rotation.Q[0],
"y": pl.Rotation.Axis.y, "y": pl.Rotation.Q[1],
"z": pl.Rotation.Axis.z, "z": pl.Rotation.Q[2],
"w": pl.Rotation.Angle "w": pl.Rotation.Q[3]
} }
} }