You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not an expert on quaternions, but from looking at several online sources, I believe there are 2 equivalent ways to invert a quaternion:
xi+yj+zk - w = -xi-yj-zk+w
The tf source code uses the right-hand method, which is less efficient (3 numbers are negated instead of 1). If everybody agrees, I could make a PR for this.
Relevant stack exchange proofs (wish I had a better reference):
Should we be targeting geometry2 repo for these kinds of improvements? @AndyZe if you're working on moveit1 still using melodic-devel, it will change whether or not its using tf1 or tf2 depending on whether you're compiling on Ubuntu 16.04 (Kinetic) or 18.04 (Melodic)
I'm not an expert on quaternions, but from looking at several online sources, I believe there are 2 equivalent ways to invert a quaternion:
xi+yj+zk - w = -xi-yj-zk+w
The tf source code uses the right-hand method, which is less efficient (3 numbers are negated instead of 1). If everybody agrees, I could make a PR for this.
Relevant stack exchange proofs (wish I had a better reference):
https://math.stackexchange.com/questions/2016282/negative-quaternion
https://math.stackexchange.com/questions/1937833/the-quaternion-matrix-for-a-rotation-of-theta-2-pi?rq=1
The text was updated successfully, but these errors were encountered: