3

I currently have two rotation vectors r1 and r2 using axis-angle representations, i.e. they are 3d vectors, their norms are the rotation angles and the normalized unit vectors are rotation axes respectively.

I am confused how to compare r1 and r2. In an optimization process of a regression system, if r1 is the ground truth, and r2 is the current result produced by the system, how do I define a proper loss to encourage the system to converge to r1? Can I just use L1/L2 loss between r1 and r2?

Thanks!

Ruyi
  • 33
  • What if the direction of $r_2$ matches that of $r_1$ but its angle it $2,\pi,k$ (with $k$ an integer) bigger or smaller? Since it would still represent the same rotation. – Kwin van der Veen Jan 26 '21 at 03:24
  • And what specifically do you want to use this "error measure" for? Should it have a geometric meaning, or do you just want some positive definite measure such that it is zero when they match? – Kwin van der Veen Jan 26 '21 at 03:26
  • I think I can add a constraint to let the direction be in [-pi, pi) 2. A positive definite measure is fine, but I think the "error measure" should have some geometric meaning, which may help the system to optimize efficiently. I'm curious if there is a way like computing the inner product of quaternions, but directly working on the rotation vectors.
  • – Ruyi Jan 26 '21 at 16:57
  • I assume you means that the angle would be in $[-\pi,\pi)$? But then for the same direction but angles $\epsilon-\pi$ and $\pi-\epsilon$ with $\epsilon$ some small positive number the actual geometric difference between the two rotations is small but your error measure it large. – Kwin van der Veen Jan 26 '21 at 17:11
  • I think I have made a mistake here. I should add a constraint that the angle would be in [0, pi]. – Ruyi Jan 26 '21 at 22:32
  • Then you can still have the same ambiguity when negating the axis. – Kwin van der Veen Jan 26 '21 at 22:35
  • What about [0, pi)? I think this is a reasonable constraint in my application. – Ruyi Jan 26 '21 at 22:51