xyz quaternion covert to quaternion in splishsplash #350
Closed
BinglunWang
started this conversation in
General
Replies: 3 comments 1 reply
|
How do you set the quaternion in SPlisHSPlasH? Do you use the constructor: Quaternionr(w,x,y,z)? |
1 reply
|
If you use the .coeffs() function, the order is (x,y,z,w). |
0 replies
|
I also made a 5 mins explanation to explain why we need to convert quaternion to q = (-w, x, z, y). https://www.youtube.com/watch?v=VO0ol6qCOOc&t=2s |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I'm trying to set rigid bodys quaternion q=(w, x, y, z) form pybullet which is a xyz coordinate to splishsplash xzy coordinate q'.
Do you know how to convert the q to q' in splishsplash? It seems depend on the implementation of splishsplash rigid body system?
Sorry about the different camera position.
Ground truth:

Figure 1,
I tried:

Figure 2, directly swap y and z to make q' = (w, x, z, y) in splishsplash.
Figure 3, as it might flip the chirality, so I make q' = (-w, x, z, y) or q'= (w, -x, -z, -y)

All reactions