change rotation export as XYZW quaternion
This commit is contained in:
parent
b376c78e3b
commit
16f6f375b5
1 changed files with 4 additions and 4 deletions
|
@ -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]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue