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
|
||||
},
|
||||
"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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue