


Hi G,
I am pretty sure this is due to my PR https://github.com/borglab/gtsam/pull/887 for fixing the singularity. The tolerances in that PR seems a bit too loose, thanks to your observations. Could you try changing theif (tr + 1.0 < 1e-4) { to some higher tolerances and see the impact?
Best,Fan
Fan Jiang3rd year Robotics PhD
Georgia Institute of Technology
On Jun 24, 2022, at 06:51:25, Guillaume Jacob <guillau...@easymile.com> wrote:
I forgot to mention that with some modifications I was able to reduce the error jump from ~1e-4 down to ~1e-8 by including two additional higher order terms in the Taylor series for the scale and replacing the approximation `Q1 = 2.0 + 2.0 * Raa` by `Q1 = 1 + 2 * Raa - tr` to account for the fact that the trace of R is not exactly -1. However, we still have the discontinuity around ~ 3.110 rad.
<Figure_4_hot+tr_s.png>G
On Friday, 24 June 2022 at 15:37:15 UTC+2 Guillaume Jacob wrote:
Hi everyone,
After an upgrade from version 4.0.3 to 4.2a7, we've noticed a strange behavior in our unit tests which we were able to track down to back and forth conversions between AngleAxis and Rotation representations for rotations.
Here is a piece of code that generates random test data in the form of 3D vectors with a norm close to PI, applies Logmap / Expmap to each vector and compares the vectors before / after this transformation − using the same metric as Eigen::DenseBase::isApprox().
* With GTSAM 4.0.3, the error is lower than 1e-9 for angles < 3.140 rad, then increases as the angle approaches PI (as expected due to the singularity).
* With GTSAM 4.2a7, we can notice a huge jump from about 1e-12 to [1e-5, 1e-3] around ~3.110 rad and a decrease as the angle gets closer to PI.
There have been several changes in SO3::Logmap recently so we suppose a mistake might have slipped unnoticed. What do you think?
Thanks in advance,Guillaume
--
You received this message because you are subscribed to the Google Groups "gtsam users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gtsam-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gtsam-users/04a4c6b4-0ed6-4fcb-aa02-48aaa6169dd0n%40googlegroups.com.
<Figure_4_hot+tr_s.png>
Guillaume JACOB 
Software Engineer
office +33 (0)5 32 10 81 90
guillaume.jacob@easymile.com
To view this discussion on the web visit https://groups.google.com/d/msgid/gtsam-users/915c147a-e7b4-47b5-86e1-0a71ace1533an%40googlegroups.com.