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
},
"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]
}
}